baraction: Shuffle functions around

Keep the order of definition in sync with the order of usage.
This commit is contained in:
Andrea Bolognani 2019-11-21 17:59:53 +01:00 committed by LordReg
parent beef2db2ca
commit e8f7e415f0

View file

@ -36,6 +36,11 @@ print_cpu() {
_print_cpu $OUT
}
print_cpuspeed() {
CPU_SPEED=`/sbin/sysctl hw.cpuspeed | cut -d "=" -f2`
printf "CPU speed: %4d MHz " $CPU_SPEED
}
print_bat() {
BAT_STATUS=$1
BAT_LEVEL=$2
@ -76,11 +81,6 @@ print_bat() {
fi
}
print_cpuspeed() {
CPU_SPEED=`/sbin/sysctl hw.cpuspeed | cut -d "=" -f2`
printf "CPU speed: %4d MHz " $CPU_SPEED
}
while :; do
# instead of sleeping, use iostat as the update timer.
# cache the output of apm(8), no need to call that every second.