summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/usr/local/www/widgets/widgets/system_information.widget.php2
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 + '%');
OpenPOWER on IntegriCloud