mirror of
https://github.com/ShaYmez/ezservermonitor-web.git
synced 2026-06-11 02:08:53 -04:00
fix PHP 7.1 notices "non well formed numeric value" #52
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user