From 87ef58abfca7bcfa3e4e794339a7a326eadc9522 Mon Sep 17 00:00:00 2001 From: Ethan Edwards Date: Wed, 3 Jun 2020 22:58:26 -0400 Subject: [PATCH] Fixed the uname -s output case statement issue --- scripts/cpu_info.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/scripts/cpu_info.sh b/scripts/cpu_info.sh index cee644f..c5180cd 100755 --- a/scripts/cpu_info.sh +++ b/scripts/cpu_info.sh @@ -8,12 +8,12 @@ get_percent() echo $percent ;; - Mac) + Darwin) percent=$(ps -A -o %cpu | awk '{s+=$1} END {print s "%"}') echo $percent ;; - Windows) + CYGWIN*|MINGW32*|MSYS*|MINGW*) # TODO - windows compatability ;; esac @@ -25,5 +25,6 @@ main() echo "CPU $cpu_percent" sleep 10 } -#run main driver + +# run main driver main