From cfd778dadb30500977fb4706c1889a9b2fbbac56 Mon Sep 17 00:00:00 2001 From: codedust Date: Sat, 23 Jul 2016 16:49:35 +0200 Subject: [PATCH] Fix number of decimal places being displayed in the CPU load bar (#54) --- lib/infobox/node.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/infobox/node.js b/lib/infobox/node.js index 3b7dd6e..668019e 100644 --- a/lib/infobox/node.js +++ b/lib/infobox/node.js @@ -204,7 +204,7 @@ define(["moment", "numeral", "tablesort", "tablesort.numeric"], } var label = document.createElement("label") - label.textContent = (v) + label.textContent = +(Math.round(v + "e+2") + "e-2") span.appendChild(label) return span