diff options
Diffstat (limited to 'battery-widget')
-rw-r--r-- | battery-widget/battery.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/battery-widget/battery.lua b/battery-widget/battery.lua index 4cbc314..54a1399 100644 --- a/battery-widget/battery.lua +++ b/battery-widget/battery.lua @@ -89,7 +89,7 @@ watch("acpi", 10, charge = charge + batt.charge end - charge = charge // #battery_info -- use average charge for battery icon + charge = charge / #battery_info -- use average charge for battery icon if (charge >= 0 and charge < 15) then batteryType = "battery-empty%s-symbolic" |