From 33ff0b5fb4aca2de3a0dcbe0ac08c7f8f4068ddd Mon Sep 17 00:00:00 2001 From: chansizzle <14916599+chansizzle@users.noreply.github.com> Date: Wed, 11 Sep 2019 13:50:37 -0600 Subject: [PATCH] Update user_dashboard.php (#4560) Added Available Memory support for Raspbian --- core/user_settings/user_dashboard.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/user_settings/user_dashboard.php b/core/user_settings/user_dashboard.php index c0e1739fea..28fd15318e 100644 --- a/core/user_settings/user_dashboard.php +++ b/core/user_settings/user_dashboard.php @@ -17,7 +17,7 @@ The Initial Developer of the Original Code is Mark J Crane - Portions created by the Initial Developer are Copyright (C) 2008-2018 + Portions created by the Initial Developer are Copyright (C) 2008-2019 the Initial Developer. All Rights Reserved. Contributor(s): @@ -1066,7 +1066,7 @@ //memory available if (stristr(PHP_OS, 'Linux')) { - $result = trim(shell_exec('free -hw | grep \'Mem:\' | cut -d\' \' -f 58-64')); + $result = trim(shell_exec('free -hw | grep \'Mem:\' | cut -d\' \' -f 55-64')); if ($result != '') { $hud[$n]['html'] .= "\n"; $hud[$n]['html'] .= "".$text['label-memory_available']."\n";