mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-02-08 21:28:40 +00:00
Fix #140
This commit is contained in:
parent
8129077da5
commit
be14091365
|
|
@ -79,9 +79,7 @@ class SystemUtils
|
||||||
{
|
{
|
||||||
$memusage = 0;
|
$memusage = 0;
|
||||||
|
|
||||||
if (stristr(PHP_OS, 'WIN')) {
|
if (stristr(PHP_OS, 'LINUX')) {
|
||||||
|
|
||||||
} elseif (stristr(PHP_OS, 'LINUX')) {
|
|
||||||
$free = shell_exec('free');
|
$free = shell_exec('free');
|
||||||
$free = (string) trim($free);
|
$free = (string) trim($free);
|
||||||
$free_arr = explode("\n", $free);
|
$free_arr = explode("\n", $free);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user