aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2017-06-22 18:00:04 +0100
committerGitHub <noreply@github.com>2017-06-22 18:00:04 +0100
commitb26bfac527d7ba7d2721288f8165812435595e09 (patch)
treebc32bff64e337810e673497a93070abf3f0d1174
parenta18f713ce121be9d4fd55a6578eab1cc8930316b (diff)
parent42a91d777a85d55ff1383c06333ed502a5443111 (diff)
downloadrspamd-b26bfac527d7ba7d2721288f8165812435595e09.tar.gz
rspamd-b26bfac527d7ba7d2721288f8165812435595e09.zip
Merge pull request #1700 from moisseev/webui
[WebUI] Round-up throughput summary values
-rw-r--r--interface/js/app/graph.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/interface/js/app/graph.js b/interface/js/app/graph.js
index e26a6bb71..59c486adb 100644
--- a/interface/js/app/graph.js
+++ b/interface/js/app/graph.js
@@ -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,
};
}, []);