Fix cpu speed on CentOS
This commit is contained in:
parent
db26756ea7
commit
19b4861e83
4
fetch
4
fetch
|
@ -38,7 +38,7 @@ export LANGUAGE=C
|
|||
# "echo: Custom string to print"
|
||||
#
|
||||
# Optional info lines that are disabled by default are:
|
||||
# "getresolution" "getsong" "getvisualstyle"
|
||||
# "getresolution" "getsong" "getvisualstyle" "getgpu"
|
||||
#
|
||||
# Info lines enabled by default are:
|
||||
# "gettitle" "getdistro" "getkernel" "getuptime" "getpackages"
|
||||
|
@ -554,7 +554,7 @@ getcpu () {
|
|||
|
||||
# Get cpu speed
|
||||
case "$distro" in
|
||||
*"buntu"*)
|
||||
*"buntu"* | "CentOS"*)
|
||||
speed=$(awk -F ': ' '/cpu MHz/ {printf $2; exit}' /proc/cpuinfo)
|
||||
speed=${speed/\./}
|
||||
;;
|
||||
|
|
Reference in New Issue