mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-01-20 13:28:42 +00:00
Fix array index
This commit is contained in:
parent
85e79113fd
commit
8db0fca114
|
|
@ -86,7 +86,7 @@ class SystemUtils
|
|||
$free = (string) trim($free);
|
||||
$freeArr = explode("\n", $free);
|
||||
$mem = explode(" ", $freeArr[1]);
|
||||
$mem = array_filter($mem);
|
||||
$mem = array_values(array_filter($mem));
|
||||
$memUsage = $mem[2] / $mem[1] * 100;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user