dont mind the commits, Im testing it on a mac, and editing and pushing
it from my desktop
This commit is contained in:
parent
eeff7ec82d
commit
420eed6fd4
1 changed files with 1 additions and 1 deletions
|
@ -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*)
|
||||
|
|
Loading…
Reference in a new issue