aboutsummaryrefslogtreecommitdiffstats
path: root/libs/load_average.php
diff options
context:
space:
mode:
Diffstat (limited to 'libs/load_average.php')
-rw-r--r--libs/load_average.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/load_average.php b/libs/load_average.php
index 09a2f3c..a48cc1d 100644
--- a/libs/load_average.php
+++ b/libs/load_average.php
@@ -14,7 +14,7 @@ else
$load = array_map(
function ($value, $cores) {
- $v = (int)($value * 100 / $cores);
+ $v = (int)((float)$value * 100 / $cores);
if ($v > 100)
$v = 100;
return $v;