baraction: Rename print_apm() to print_bat()

It fits better with the output of the function, and is also a
more OS neutral name.
This commit is contained in:
Andrea Bolognani 2019-11-21 17:18:56 +01:00 committed by LordReg
parent 43e7a3d20a
commit beef2db2ca

View file

@ -36,7 +36,7 @@ print_cpu() {
_print_cpu $OUT
}
print_apm() {
print_bat() {
BAT_STATUS=$1
BAT_LEVEL=$2
AC_STATUS=$3
@ -98,7 +98,7 @@ while :; do
print_mem
print_cpu $REPLY
print_cpuspeed
print_apm $APM_DATA
print_bat $APM_DATA
echo ""
fi
I=$(( ( ${I} + 1 ) % 22 ));