Fixed doubled cpu speed in Windows

This commit is contained in:
dylan araps 2016-01-05 18:25:19 +11:00
parent 6d77ae4123
commit 2bcfdab6d1
1 changed files with 0 additions and 9 deletions

View File

@ -476,15 +476,6 @@ getcpu () {
cpu=${cpu/model name*: /}
cpu=${cpu// /}
cpu=${cpu% }
speed=$(grep 'cpu MHz' /proc/cpuinfo)
speed=${speed/cpu MHz*: /}
speed=${speed/\./}
# Convert mhz to ghz without bc
speed=$((${speed} / 100000))
speed=${speed:0:1}.${speed:1}
cpu="$cpu @ ${speed}GHz"
;;
*)