dont mind the commits, Im testing it on a mac, and editing and pushing

it from my desktop
This commit is contained in:
Ethan Edwards 2020-06-07 19:21:46 -04:00
parent eeff7ec82d
commit 420eed6fd4

View file

@ -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*)