NetBSD: Actually fix whitespace issue
This commit is contained in:
parent
7e073ef573
commit
ae46d6f895
5
fetch
5
fetch
|
@ -577,16 +577,17 @@ getcpu () {
|
||||||
cpu="$(grep -F 'model name' /proc/cpuinfo)"
|
cpu="$(grep -F 'model name' /proc/cpuinfo)"
|
||||||
cpu=${cpu/model name*: /}
|
cpu=${cpu/model name*: /}
|
||||||
cpu=${cpu/ @*/}
|
cpu=${cpu/ @*/}
|
||||||
|
cpu=${cpu// /}
|
||||||
|
cpu=${cpu% }
|
||||||
|
|
||||||
# Get cpu speed
|
# Get cpu speed
|
||||||
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))
|
speed=$((speed / 10000))
|
||||||
speed=${speed:0:1}.${speed:1}
|
speed=${speed:0:1}.${speed:1}
|
||||||
|
|
||||||
cpu="$cpu @ ${speed}GHz"
|
cpu="$cpu @ ${speed}GHz"
|
||||||
cpu=${cpu/[[:space:]]/}
|
|
||||||
;;
|
;;
|
||||||
|
|
||||||
*)
|
*)
|
||||||
|
|
Reference in New Issue