From 6f05fa78ace7679826554e41301ffe9b98d99128 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20Mart=C3=ADn?= Date: Wed, 22 Oct 2014 16:57:48 +0200 Subject: [PATCH] Bug #3133: Trucate acct totals to 2 decimals --- src/sunstone/public/js/sunstone.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sunstone/public/js/sunstone.js b/src/sunstone/public/js/sunstone.js index 25d7ffb86f..db8ce411ab 100644 --- a/src/sunstone/public/js/sunstone.js +++ b/src/sunstone/public/js/sunstone.js @@ -5396,8 +5396,8 @@ function fillAccounting(div, req, response, no_table) { } }); - cpu_row[1] = cpu_total; - mem_row[1] = mem_total; + cpu_row[1] = (cpu_total * 100).toFixed() / 100; + mem_row[1] = (mem_total * 100).toFixed() / 100; cpu_dataTable_data.push(cpu_row); mem_dataTable_data.push(mem_row);