CPU [Linux]: Add fallback speed method for PowerPC systems.
This commit is contained in:
parent
2e1c942491
commit
91372f1cde
|
@ -19,6 +19,7 @@
|
||||||
**CPU**
|
**CPU**
|
||||||
|
|
||||||
- [Linux] Fixed inaccurate output on ARM SoC devices.
|
- [Linux] Fixed inaccurate output on ARM SoC devices.
|
||||||
|
- [Linux] Fixed CPU speed not appearing on PowerPC systems.
|
||||||
- [NetBSD] Added support for CPU temperature. (NOTE: This only supports newer Intel processors)
|
- [NetBSD] Added support for CPU temperature. (NOTE: This only supports newer Intel processors)
|
||||||
- Fixed inaccurate speed output in systems with CPU speed less than 1 GHz.
|
- Fixed inaccurate speed output in systems with CPU speed less than 1 GHz.
|
||||||
|
|
||||||
|
|
3
neofetch
3
neofetch
|
@ -859,7 +859,8 @@ get_cpu() {
|
||||||
speed="$((speed / 1000))"
|
speed="$((speed / 1000))"
|
||||||
|
|
||||||
else
|
else
|
||||||
speed="$(awk -F ': |\\.' '/cpu MHz/ {printf $2; exit}' /proc/cpuinfo)"
|
speed="$(awk -F ': |\\.' '/cpu MHz|^clock/ {printf $2; exit}' /proc/cpuinfo)"
|
||||||
|
speed="${speed/MHz}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Get CPU temp.
|
# Get CPU temp.
|
||||||
|
|
Reference in New Issue