mirror of
https://github.com/dustinkirkland/byobu
synced 2025-08-22 14:24:39 -07:00
use awk instead instead of bc in battery script
This commit is contained in:
parent
586122d3d9
commit
a33181cc9c
1 changed files with 1 additions and 1 deletions
|
@ -65,7 +65,7 @@ for bat in $BATS; do
|
|||
fi
|
||||
|
||||
|
||||
percent=$(echo "1+100*$rem/$full" | bc)
|
||||
percent=$( echo "$rem" "$full" | awk '{printf "%.0f", 100*$1/$2}')
|
||||
state=$(search "$statefile" "charging state: *\(.*\)")
|
||||
|
||||
case $state in
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue