From fcf7cf935278ed1c7e52c52addeef4dcac650553 Mon Sep 17 00:00:00 2001 From: chansizzle <14916599+chansizzle@users.noreply.github.com> Date: Mon, 5 Aug 2019 16:21:13 -0600 Subject: [PATCH] Update user_dashboard.php (#4417) --- core/user_settings/user_dashboard.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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'] .= "