From 8ba9b201522da6e7c4d70b1c7c98e4eb34a23fea Mon Sep 17 00:00:00 2001 From: Ethan Edwards Date: Sun, 7 Jun 2020 19:08:55 -0400 Subject: [PATCH] realized the command i was trying to use was depreciated --- scripts/ram_info.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/ram_info.sh b/scripts/ram_info.sh index ff17c91..da5bf76 100755 --- a/scripts/ram_info.sh +++ b/scripts/ram_info.sh @@ -19,8 +19,8 @@ get_percent() Darwin) # percent=$(ps -A -o %mem | awk '{mem += $1} END {print mem}') used_mem=$(top -l 1 -s 0 | grep PhysMem | awk '{mem += $2} END {print mem}') - total_mem=$(hwprefs memory_size | sed 's/ //g; s/B//g;') - echo $used_mem/$total_mem + total_mem=$(system_profiler SPHardwareDataType | grep "Memory:" | awk '{mem += $2} END {print mem}') + echo $used_mem/$total_mem\G\B ;; CYGWIN*|MINGW32*|MSYS*|MINGW*)