From 28d33f752676608d452590361a37b29cb3048955 Mon Sep 17 00:00:00 2001 From: Tudor Date: Tue, 23 Feb 2016 11:29:03 +0200 Subject: [PATCH] It should work now --- fetch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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")