From: Alexander Moisseev Date: Fri, 3 Nov 2017 10:52:21 +0000 (+0300) Subject: [WebUI] Fix NaNs display on Throughput graph X-Git-Tag: 1.7.0~483^2~1 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=f6a4970acf6cd6172ddf5519c38e247628de75a9;p=rspamd.git [WebUI] Fix NaNs display on Throughput graph MFH: rspamd-1.6 --- 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; } + }); }); }