From ab5a3fa10e8dd2b88219a00ac410cb9ea8a0b5aa Mon Sep 17 00:00:00 2001 From: Steve Beaver Date: Thu, 24 Aug 2017 08:48:26 -0400 Subject: Fixed #7804 Replace Math.trunc with Math.floor to make IE happy --- src/usr/local/www/widgets/widgets/system_information.widget.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/usr') 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 122b9a9..558851d 100644 --- a/src/usr/local/www/widgets/widgets/system_information.widget.php +++ b/src/usr/local/www/widgets/widgets/system_information.widget.php @@ -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 + '%'); -- cgit v1.1