mirror of
https://github.com/xzeldon/htop.git
synced 2025-02-07 12:23:38 +03:00
edf1b10d2c
Use the more portable sysfs node /sys/devices/system/cpu/cpuX/cpufreq/scaling_cur_freq to get the CPU frequency. In case of an error fall back to /proc/cpuinfo . Also use a fixed width of 4 for the frequency to avoid position jumps in case the frequency moves in the range 900-1100 MHz.