Fixed doubled cpu speed in Windows
This commit is contained in:
parent
6d77ae4123
commit
2bcfdab6d1
9
fetch.sh
9
fetch.sh
|
@ -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"
|
||||
;;
|
||||
|
||||
*)
|
||||
|
|
Reference in New Issue