From 58e35533c344ade7216f5003e7748a4e468d3029 Mon Sep 17 00:00:00 2001 From: chansizzle <14916599+chansizzle@users.noreply.github.com> Date: Thu, 8 Aug 2019 18:10:42 -0600 Subject: [PATCH] Update user_dashboard.php (#4428) --- core/user_settings/user_dashboard.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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;