diff options
author | Alexander Moisseev <moiseev@mezonplus.ru> | 2017-11-03 13:52:21 +0300 |
---|---|---|
committer | Alexander Moisseev <moiseev@mezonplus.ru> | 2017-11-03 13:52:21 +0300 |
commit | f6a4970acf6cd6172ddf5519c38e247628de75a9 (patch) | |
tree | 840fe3975d3d028f13eb6ef858d515720d89f448 /interface | |
parent | a03ca6ec78fd137bdfc6a9ea2fdcf53d92458d8c (diff) | |
download | rspamd-f6a4970acf6cd6172ddf5519c38e247628de75a9.tar.gz rspamd-f6a4970acf6cd6172ddf5519c38e247628de75a9.zip |
[WebUI] Fix NaNs display on Throughput graph
MFH: rspamd-1.6
Diffstat (limited to 'interface')
-rw-r--r-- | interface/js/app/graph.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/interface/js/app/graph.js b/interface/js/app/graph.js index 59c486adb..029bf054c 100644 --- a/interface/js/app/graph.js +++ b/interface/js/app/graph.js @@ -169,7 +169,9 @@ function($, D3Evolution, unused) { scaleFactor = 60; unit = "msg/min"; data.forEach(function (s) { - s.forEach(function (d) { d.y *= scaleFactor; }); + s.forEach(function (d) { + if (d.y !== null) { d.y *= scaleFactor; } + }); }); } |