Fix stray digit in Windows CPU output
This commit is contained in:
parent
7770c9a3cd
commit
22939ba502
6
fetch
6
fetch
|
@ -803,7 +803,11 @@ getcpu () {
|
||||||
speed="$(grep -F 'cpu MHz' /proc/cpuinfo)"
|
speed="$(grep -F 'cpu MHz' /proc/cpuinfo)"
|
||||||
speed=${speed/cpu MHz*: }
|
speed=${speed/cpu MHz*: }
|
||||||
speed=${speed/\.}
|
speed=${speed/\.}
|
||||||
speed=$((speed / 10000))
|
|
||||||
|
case "$distro" in
|
||||||
|
"NetBSD"*) speed=$((speed / 10000)) ;;
|
||||||
|
"WindowS"*) speed=$((speed / 100000)) ;;
|
||||||
|
esac
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
|
Reference in New Issue