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

2
fetch
View file

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