Fix double space in linux cpu name
This commit is contained in:
2
fetch
2
fetch
@@ -713,7 +713,7 @@ 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
|
||||||
if [ -d "/sys/devices/system/cpu/cpu0/cpufreq" ]; then
|
if [ -d "/sys/devices/system/cpu/cpu0/cpufreq" ]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user