diff options
author | Steve Beaver <sbeaver@netgate.com> | 2017-08-24 08:50:47 -0400 |
---|---|---|
committer | Steve Beaver <sbeaver@netgate.com> | 2017-08-24 08:50:47 -0400 |
commit | a1c3244c96b033891136ff2d95be61500a720231 (patch) | |
tree | 58eaf9f5ddc85151724d4d7b443ccc7307254e95 /src | |
parent | 1f6d1861a972cba2998e96e23115e7f1ab904beb (diff) | |
download | pfsense-a1c3244c96b033891136ff2d95be61500a720231.zip pfsense-a1c3244c96b033891136ff2d95be61500a720231.tar.gz |
Fixed #7804 Replace Math.trunc with Math.floor to make IE happy
Diffstat (limited to 'src')
-rw-r--r-- | src/usr/local/www/widgets/widgets/system_information.widget.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/usr/local/www/widgets/widgets/system_information.widget.php b/src/usr/local/www/widgets/widgets/system_information.widget.php index 1863416..5e0208a 100644 --- a/src/usr/local/www/widgets/widgets/system_information.widget.php +++ b/src/usr/local/www/widgets/widgets/system_information.widget.php @@ -572,7 +572,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 + '%'); |