CPU Usage: Wildcard case statement
This commit is contained in:
parent
5c7ab93129
commit
780c30de7d
2
neofetch
2
neofetch
|
@ -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
|
||||||
|
|
Reference in New Issue