I think this will add Mac/Darwin support

This commit is contained in:
Ethan Edwards 2020-06-04 00:33:47 -04:00
parent 410902b6d8
commit 833baa9616

View file

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