mirror of
https://github.com/dylanaraps/neofetch.git
synced 2025-12-14 04:32:12 +00:00
CPU Usage: Wildcard case statement
This commit is contained in:
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
Block a user