aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbattery2
1 files changed, 1 insertions, 1 deletions
diff --git a/battery b/battery
index 487610b..0fe1aeb 100755
--- a/battery
+++ b/battery
@@ -43,7 +43,7 @@ else
fi
# Set battery level indication
-if (($charge <= 25)); then
+if ((`echo $charge | cut -d ',' -f 1` <= 25)); then
chargeColor=$low
else
chargeColor=$healthy