Commit 91372f1c authored by Muhammad Herdiansyah's avatar Muhammad Herdiansyah

CPU [Linux]: Add fallback speed method for PowerPC systems.

parent 2e1c9424
...@@ -19,6 +19,7 @@ ...@@ -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.
......
...@@ -859,7 +859,8 @@ get_cpu() { ...@@ -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.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment