diff options
| author | shevabam <shevabam@gmail.com> | 2017-11-02 20:54:43 +0100 |
|---|---|---|
| committer | shevabam <shevabam@gmail.com> | 2017-11-02 20:54:43 +0100 |
| commit | 725787bcf7421143d6567e5b4f39ab5fd3fd8695 (patch) | |
| tree | 350af5d92c101bd697b9bb0b165f172915a3742a /libs/load_average.php | |
| parent | f6dc27183987b65dc06c11dbfd21507da15f1ea7 (diff) | |
fix PHP 7.1 notices "non well formed numeric value" #52
Diffstat (limited to 'libs/load_average.php')
| -rw-r--r-- | libs/load_average.php | 2 |
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; |
