Fixed *buntu cpu speed on multicore cpus
This commit is contained in:
parent
ba88942bcd
commit
b36385d53d
1 changed files with 1 additions and 1 deletions
2
fetch
2
fetch
|
@ -555,7 +555,7 @@ getcpu () {
|
|||
# Get cpu speed
|
||||
case "$distro" in
|
||||
*"buntu"*)
|
||||
speed=$(awk -F ': ' '/cpu Mhz/ {printf $2}' /proc/cpuinfo)
|
||||
speed=$(awk -F ': ' '/cpu MHz/ {printf $2; exit}' /proc/cpuinfo)
|
||||
speed=${speed/\./}
|
||||
;;
|
||||
|
||||
|
|
Loading…
Reference in a new issue