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.6.6~2^2~14 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=088da391f752db94bb0259ca4ff7139ce3bfdb09;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; } + }); }); }