I think this will add Mac/Darwin support
This commit is contained in:
parent
410902b6d8
commit
833baa9616
1 changed files with 3 additions and 1 deletions
|
@ -9,7 +9,8 @@ get_percent()
|
||||||
;;
|
;;
|
||||||
|
|
||||||
Darwin)
|
Darwin)
|
||||||
# TODO - Mac compatability
|
percent=$(ps -A -o %mem | awk '{mem += $1} END {print mem}')
|
||||||
|
echo $percent
|
||||||
;;
|
;;
|
||||||
|
|
||||||
CYGWIN*|MINGW32*|MSYS*|MINGW*)
|
CYGWIN*|MINGW32*|MSYS*|MINGW*)
|
||||||
|
@ -24,5 +25,6 @@ main()
|
||||||
echo "RAM $ram_percent"
|
echo "RAM $ram_percent"
|
||||||
sleep 10
|
sleep 10
|
||||||
}
|
}
|
||||||
|
|
||||||
#run main driver
|
#run main driver
|
||||||
main
|
main
|
||||||
|
|
Loading…
Reference in a new issue