]> source.dussan.org Git - rspamd.git/commitdiff
[WebUI] Fix NaNs display on Throughput graph
authorAlexander Moisseev <moiseev@mezonplus.ru>
Fri, 3 Nov 2017 10:52:21 +0000 (13:52 +0300)
committerAlexander Moisseev <moiseev@mezonplus.ru>
Fri, 3 Nov 2017 10:52:21 +0000 (13:52 +0300)
MFH: rspamd-1.6

interface/js/app/graph.js

index 59c486adbfe6cba7266fb4d71f655f32d3f1cfee..029bf054ca340cb15aaac92135ec2a9016b7de76 100644 (file)
@@ -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; }
+                    });
                 });
             }