Comment 9 for bug 675442

Revision history for this message
Marcin Juszkiewicz (hrw) wrote :

hrw@panda:~$ sh -x /usr/lib/byobu/cpu_freq
+ PKG=byobu
+ color
+ [ = --detail ]
+ [ -r /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq ]
+ egrep -i -m 1 ^cpu MHz|^clock /proc/cpuinfo
+ awk -F[:.] { printf "%.1f", $2 / 1000 }
+ freq=
+ true
+ color b c W
+ true
+ color -
+ true
+ color c W
+ true
+ color -
+ true
+ printf %s%s GHz
GHz hrw@panda:~$