CPU Usage: Wildcard case statement

This commit is contained in:
Dylan Araps 2016-11-14 01:03:19 +11:00
parent 5c7ab93129
commit 780c30de7d

View file

@ -863,7 +863,7 @@ get_cpu_usage() {
cpu_usage="${cpu_usage//[[:space:]]}"
;;
"Linux" | "Mac OS X" | "iPhone OS" | "BSD" | "Solaris" | "GNU")
*)
# Get cores if unset
if [[ -z "$cores" ]]; then
case "$os" in