1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-22 18:50:08 +03:00

Bug #3133: Trucate acct totals to 2 decimals

This commit is contained in:
Carlos Martín 2014-10-22 16:57:48 +02:00
parent 7b6c056276
commit 6f05fa78ac

View File

@ -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);