mirror of
https://github.com/dylanaraps/neofetch.git
synced 2025-12-22 11:39:53 +00:00
Fixed doubled cpu speed in Windows
This commit is contained in:
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"
|
|
||||||
;;
|
;;
|
||||||
|
|
||||||
*)
|
*)
|
||||||
|
|||||||
Reference in New Issue
Block a user