diff --git a/neofetch b/neofetch index bce32f3e..06ebbcd1 100755 --- a/neofetch +++ b/neofetch @@ -1105,7 +1105,8 @@ getcpu () { cpu=${cpu/ @*} # Get cpu speed - speed=$(sysctl -n hw.cpuspeed hw.clockrate 2>/dev/null) + speed=$(sysctl -n hw.cpuspeed) + [ -z "$speed" ] && speed=$(sysctl -n hw.clockrate) speed=$((speed / 100)) # Get cpu cores