Fix stray digit in Windows CPU output

This commit is contained in:
Dylan 2016-02-21 08:34:02 +11:00
parent 7770c9a3cd
commit 22939ba502

6
fetch
View file

@ -803,7 +803,11 @@ getcpu () {
speed="$(grep -F 'cpu MHz' /proc/cpuinfo)"
speed=${speed/cpu MHz*: }
speed=${speed/\.}
speed=$((speed / 10000))
case "$distro" in
"NetBSD"*) speed=$((speed / 10000)) ;;
"WindowS"*) speed=$((speed / 100000)) ;;
esac
;;
esac