Fixed doubled cpu speed in Windows
This commit is contained in:
parent
6d77ae4123
commit
2bcfdab6d1
1 changed files with 0 additions and 9 deletions
9
fetch.sh
9
fetch.sh
|
@ -476,15 +476,6 @@ getcpu () {
|
||||||
cpu=${cpu/model name*: /}
|
cpu=${cpu/model name*: /}
|
||||||
cpu=${cpu// /}
|
cpu=${cpu// /}
|
||||||
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"
|
|
||||||
;;
|
;;
|
||||||
|
|
||||||
*)
|
*)
|
||||||
|
|
Loading…
Reference in a new issue