Remove bc usage from OpenBSD battery

This commit is contained in:
Dylan Araps 2016-06-12 17:23:11 +10:00
parent 15c6720c26
commit 79fccfa930
1 changed files with 1 additions and 1 deletions

View File

@ -1932,7 +1932,7 @@ getbattery () {
battery0now="${battery0now/ Wh*}"
[ "$battery0full" ] && \
battery="$(printf "%s\n" "100 * $battery0now / $battery0full" | bc)%"
battery="$((100 * ${battery0now/\.} / ${battery0full/\.}))%"
;;
"Mac OS X")