From: Alexander Moisseev Date: Thu, 22 Jun 2017 15:48:04 +0000 (+0300) Subject: [WebUI] Round-up throughput summary values X-Git-Tag: 1.6.2~86^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=42a91d777a85d55ff1383c06333ed502a5443111;p=rspamd.git [WebUI] Round-up throughput summary values --- 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, }; }, []);