Fix broken cpu speed on NetBSD
This commit is contained in:
parent
b07d18d6d0
commit
8d67097a32
1 changed files with 1 additions and 5 deletions
6
neofetch
6
neofetch
|
@ -977,11 +977,7 @@ getcpu () {
|
||||||
speed=$((speed / 100000))
|
speed=$((speed / 100000))
|
||||||
else
|
else
|
||||||
speed=$(awk -F ': |\\.' '/cpu MHz/ {printf $2; exit}' /proc/cpuinfo)
|
speed=$(awk -F ': |\\.' '/cpu MHz/ {printf $2; exit}' /proc/cpuinfo)
|
||||||
|
speed=$((speed / 100))
|
||||||
case "$distro" in
|
|
||||||
"NetBSD"*) speed=$((speed / 10000)) ;;
|
|
||||||
*) speed=$((speed / 100)) ;;
|
|
||||||
esac
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cores=$(awk -F ': ' '/siblings/ {printf $2; exit}' /proc/cpuinfo)
|
cores=$(awk -F ': ' '/siblings/ {printf $2; exit}' /proc/cpuinfo)
|
||||||
|
|
Loading…
Reference in a new issue