mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Fixed #7804
Replace Math.trunc with Math.floor to make IE happy
(cherry picked from commit ab5a3fa10e)
This commit is contained in:
parent
bfeda19405
commit
113caa096c
@ -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 + '%');
|
||||
|
||||
Loading…
Reference in New Issue
Block a user