diff options
author | moisseev <moiseev@mezonplus.ru> | 2023-11-19 18:31:57 +0300 |
---|---|---|
committer | moisseev <moiseev@mezonplus.ru> | 2023-11-19 18:31:57 +0300 |
commit | a592c2a341db27cfac0a894b49eb922e56138004 (patch) | |
tree | b806ee53e1d96917f5068ee8a0432f51730a3652 /interface/js/app/graph.js | |
parent | ab1b0baf1f63b57ae1e04093235d1e7c5603bd57 (diff) | |
download | rspamd-a592c2a341db27cfac0a894b49eb922e56138004.tar.gz rspamd-a592c2a341db27cfac0a894b49eb922e56138004.zip |
[Test] Enforce maximum line length
Diffstat (limited to 'interface/js/app/graph.js')
-rw-r--r-- | interface/js/app/graph.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/interface/js/app/graph.js b/interface/js/app/graph.js index b7276f1c1..154317fd7 100644 --- a/interface/js/app/graph.js +++ b/interface/js/app/graph.js @@ -104,7 +104,8 @@ define(["jquery", "app/rspamd", "d3evolution", "d3pie", "d3", "footable"], // Time intervals that don't have data are excluded from average calculation as d3.mean()ignores nulls const avg = d3.mean(curr, function (d) { return d.y; }); // To find an integral on the whole time interval we need to convert nulls to zeroes - const value = d3.mean(curr, function (d) { return Number(d.y); }) * timeInterval / scaleFactor ^ 0; // eslint-disable-line no-bitwise + // eslint-disable-next-line no-bitwise + const value = d3.mean(curr, function (d) { return Number(d.y); }) * timeInterval / scaleFactor ^ 0; const yExtents = d3.extent(curr, function (d) { return d.y; }); total += value; |