From 833baa96165e16bf451152725fa4ed09a6147da3 Mon Sep 17 00:00:00 2001 From: Ethan Edwards Date: Thu, 4 Jun 2020 00:33:47 -0400 Subject: [PATCH] I think this will add Mac/Darwin support --- scripts/ram_info.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/ram_info.sh b/scripts/ram_info.sh index 3130e75..6fc4705 100755 --- a/scripts/ram_info.sh +++ b/scripts/ram_info.sh @@ -9,7 +9,8 @@ get_percent() ;; Darwin) - # TODO - Mac compatability + percent=$(ps -A -o %mem | awk '{mem += $1} END {print mem}') + echo $percent ;; CYGWIN*|MINGW32*|MSYS*|MINGW*) @@ -24,5 +25,6 @@ main() echo "RAM $ram_percent" sleep 10 } + #run main driver main