diff --git a/core/user_settings/user_dashboard.php b/core/user_settings/user_dashboard.php index 865baccf8e..78846d0a6f 100644 --- a/core/user_settings/user_dashboard.php +++ b/core/user_settings/user_dashboard.php @@ -1064,12 +1064,12 @@ } } - //memory free + //memory available if (stristr(PHP_OS, 'Linux')) { - $result = trim(shell_exec('free -h | grep \'Mem:\' | cut -d\' \' -f25-30')); + $result = trim(shell_exec('free -hw | grep \'Mem:\' | cut -d\' \' -f 58-64')); if ($result != '') { $hud[$n]['html'] .= "\n"; - $hud[$n]['html'] .= "".$text['label-memory_free']."\n"; + $hud[$n]['html'] .= "".$text['label-memory_available']."\n"; $hud[$n]['html'] .= "".$result."\n"; $hud[$n]['html'] .= "\n"; $c = ($c) ? 0 : 1;