From 088da391f752db94bb0259ca4ff7139ce3bfdb09 Mon Sep 17 00:00:00 2001 From: Alexander Moisseev Date: Fri, 3 Nov 2017 13:52:21 +0300 Subject: [PATCH] [WebUI] Fix NaNs display on Throughput graph MFH: rspamd-1.6 --- interface/js/app/graph.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; } + }); }); } -- 2.39.5