Fixed *buntu cpu speed on multicore cpus

This commit is contained in:
Dylan 2016-01-19 22:33:25 +11:00
parent ba88942bcd
commit b36385d53d
1 changed files with 1 additions and 1 deletions

2
fetch
View File

@ -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/\./}
;;