From 8bcaa66d53ab8cba43f548a1997e48dcb7342ec8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20Mart=C3=ADn?= Date: Wed, 7 May 2014 17:12:38 +0200 Subject: [PATCH] Feature #1607: round 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 523769a37b..7aa2aa5497 100644 --- a/src/sunstone/public/js/sunstone.js +++ b/src/sunstone/public/js/sunstone.js @@ -4625,7 +4625,7 @@ Download csv $.each(series.CPU_HOURS, function(key, val){ var v = val[t]; if(v != undefined){ - cpu_row.push(v); + cpu_row.push((v * 100).toFixed() / 100); } else { cpu_row.push(0); } @@ -4634,7 +4634,7 @@ Download csv $.each(series.MEM_HOURS, function(key, val){ var v = val[t]; if(v != undefined){ - mem_row.push(v); + mem_row.push((v * 100).toFixed() / 100); } else { mem_row.push(0); }