autocore-arm: fix read cpu freq
This commit is contained in:
parent
3f5ce2f0b3
commit
9f571180e4
@ -1,6 +1,6 @@
|
||||
#!/bin/sh
|
||||
|
||||
cpu_freq="$(expr $(cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_max_freq) / 1000)Mhz"
|
||||
cpu_freq="$(expr $(cat /sys/devices/system/cpu/cpufreq/policy0/scaling_max_freq) / 1000)Mhz"
|
||||
sys_temp="$(awk "BEGIN{printf (\"%.1f\n\",$(cat /sys/class/thermal/thermal_zone0/temp)/1000) }")°C"
|
||||
|
||||
echo -n "(${cpu_freq}, ${sys_temp})"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user