CPU Usage: Wildcard case statement
This commit is contained in:
parent
5c7ab93129
commit
780c30de7d
1 changed files with 1 additions and 1 deletions
2
neofetch
2
neofetch
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue