From 420eed6fd40ffeadad23ab92b916dfd07e65a86d Mon Sep 17 00:00:00 2001 From: Ethan Edwards Date: Sun, 7 Jun 2020 19:21:46 -0400 Subject: [PATCH] dont mind the commits, Im testing it on a mac, and editing and pushing it from my desktop --- scripts/ram_info.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/ram_info.sh b/scripts/ram_info.sh index 60de0cd..f9d207c 100755 --- a/scripts/ram_info.sh +++ b/scripts/ram_info.sh @@ -20,7 +20,7 @@ get_percent() # percent=$(ps -A -o %mem | awk '{mem += $1} END {print mem}') used_mem=$(top -l 1 -s 0 | grep PhysMem | awk '{print $2 $3}' | sed 's/used//g') total_mem=$(system_profiler SPHardwareDataType | grep "Memory:" | awk '{print $2 $3}' | sed 's/used//g') - echo $used_mem/$total_mem\G\B + echo $used_mem/$total_mem ;; CYGWIN*|MINGW32*|MSYS*|MINGW*)