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