diff --git a/fetch b/fetch index e752b12e..c560ac77 100755 --- a/fetch +++ b/fetch @@ -1412,7 +1412,7 @@ getbattery () { battery0now=$(sysctl -n hw.sensors.acpibat0.watthour3) battery0now="${battery0now/ Wh*}" - battery="$(( 100 * $battery0now / $battery0full ))%" + battery="$(echo "100 * $battery0now / $battery0full" | bc)%" ;; "Mac OS X")