#707 remove % from value

This commit is contained in:
Christian Rotzoll 2019-08-05 23:35:03 +02:00
parent 86839947ac
commit f1201cdaeb

View file

@ -83,7 +83,7 @@ if [ "$1" = "status" ]; then
# get battery level if possible
if [ "${status}" = "ONLINE" ] || [ "${status}" = "ONBATT" ]; then
battery=$(apcaccess -p BCHARGE | xargs | cut -d "." -f1)
echo "upsBattery='${battery}%'"
echo "upsBattery=${battery}"
fi
fi
exit 0