mirror of
https://github.com/dustinkirkland/byobu
synced 2025-08-21 22:13:19 -07:00
fix off-by-one error
This commit is contained in:
parent
8002b813fd
commit
586122d3d9
1 changed files with 1 additions and 1 deletions
|
@ -65,7 +65,7 @@ for bat in $BATS; do
|
|||
fi
|
||||
|
||||
|
||||
percent=$(echo "100*$rem/$full" | bc)
|
||||
percent=$(echo "1+100*$rem/$full" | bc)
|
||||
state=$(search "$statefile" "charging state: *\(.*\)")
|
||||
|
||||
case $state in
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue