fix off-by-one error

This commit is contained in:
Dustin Kirkland 2009-04-03 15:34:21 -07:00
commit 586122d3d9

View file

@ -65,7 +65,7 @@ for bat in $BATS; do
fi fi
percent=$(echo "100*$rem/$full" | bc) percent=$(echo "1+100*$rem/$full" | bc)
state=$(search "$statefile" "charging state: *\(.*\)") state=$(search "$statefile" "charging state: *\(.*\)")
case $state in case $state in