fi
}
+print_cpuspeed() {
+ CPU_SPEED=`/sbin/sysctl hw.cpuspeed | cut -d "=" -f2`
+ echo -n " CPU speed: $CPU_SPEED MHz"
+}
+
while :; do
# instead of sleeping, use iostat as the update timer.
# cache the output of apm(8), no need to call that every second.
# print_mem $MEM
print_cpu $REPLY
print_apm $APM_DATA
+ print_cpuspeed
echo ""
fi
I=$(( ${I} + 1 ));