diff --git a/core/user_settings/user_dashboard.php b/core/user_settings/user_dashboard.php index 0b03ff7dba..865baccf8e 100644 --- a/core/user_settings/user_dashboard.php +++ b/core/user_settings/user_dashboard.php @@ -1064,6 +1064,18 @@ } } + //memory free + if (stristr(PHP_OS, 'Linux')) { + $result = trim(shell_exec('free -h | grep \'Mem:\' | cut -d\' \' -f25-30')); + if ($result != '') { + $hud[$n]['html'] .= "\n"; + $hud[$n]['html'] .= "".$text['label-memory_free']."\n"; + $hud[$n]['html'] .= "".$result."\n"; + $hud[$n]['html'] .= "\n"; + $c = ($c) ? 0 : 1; + } + } + //disk usage if (stristr(PHP_OS, 'Linux')) { //calculated above