Replace Math.trunc with Math.floor to make IE happy

(cherry picked from commit ab5a3fa10e)
This commit is contained in:
Steve Beaver 2017-08-24 08:48:26 -04:00
parent bfeda19405
commit 113caa096c

View File

@ -639,7 +639,7 @@ function updateCPU(total, used) {
var d_used = used - lastUsed;
// Convert to percent
var x = Math.trunc( ((d_total - d_used)/d_total) * 100);
var x = Math.floor( ((d_total - d_used)/d_total) * 100);
if ($('#cpumeter')) {
$('[id="cpumeter"]').html(x + '%');