I actually fixed the double space before '@' in cpu usage!
This commit is contained in:
parent
dd04093a3b
commit
5729d33cb5
3
fetch
3
fetch
|
@ -697,9 +697,8 @@ getcpu () {
|
||||||
# Get cpu name
|
# Get cpu name
|
||||||
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// }
|
cpu=${cpu%% }
|
||||||
|
|
||||||
# Get cpu speed
|
# Get cpu speed
|
||||||
if [ -d "/sys/devices/system/cpu/cpu0/cpufreq" ]; then
|
if [ -d "/sys/devices/system/cpu/cpu0/cpufreq" ]; then
|
||||||
|
|
Reference in New Issue