CPU Usage: Wildcard case statement

This commit is contained in:
Dylan Araps 2016-11-14 01:03:19 +11:00
parent 5c7ab93129
commit 780c30de7d
1 changed files with 1 additions and 1 deletions

View File

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