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
|
# Get cpu speed
|
||||||
case "$distro" in
|
case "$distro" in
|
||||||
*"buntu"*)
|
*"buntu"*)
|
||||||
speed=$(awk -F ': ' '/cpu Mhz/ {printf $2}' /proc/cpuinfo)
|
speed=$(awk -F ': ' '/cpu MHz/ {printf $2; exit}' /proc/cpuinfo)
|
||||||
speed=${speed/\./}
|
speed=${speed/\./}
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue