]> source.dussan.org Git - rspamd.git/commitdiff
[WebUI] Round-up throughput summary values 1700/head
authorAlexander Moisseev <moiseev@mezonplus.ru>
Thu, 22 Jun 2017 15:48:04 +0000 (18:48 +0300)
committerAlexander Moisseev <moiseev@mezonplus.ru>
Thu, 22 Jun 2017 15:48:04 +0000 (18:48 +0300)
interface/js/app/graph.js

index e26a6bb71df29f7bf04d5461ab0381ec48ae4ae7..59c486adbfe6cba7266fb4d71f655f32d3f1cfee 100644 (file)
@@ -118,10 +118,10 @@ function($, D3Evolution, unused) {
             return {
                 label: graph_options.legend.entries[i].label,
                 value: avg && (avg * timeInterval / scaleFactor) ^ 0,
-                min: yExtents[0],
-                avg: avg && avg.toFixed(6),
-                max: yExtents[1],
-                last: curr[curr.length - 1].y,
+                min: +yExtents[0].toFixed(6),
+                avg: avg && +avg.toFixed(6),
+                max: +yExtents[1].toFixed(6),
+                last: +curr[curr.length - 1].y.toFixed(6),
                 color: graph_options.legend.entries[i].color,
             };
         }, []);