summaryrefslogtreecommitdiff
path: root/batteryarc-widget
diff options
context:
space:
mode:
Diffstat (limited to 'batteryarc-widget')
-rw-r--r--batteryarc-widget/batteryarc.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/batteryarc-widget/batteryarc.lua b/batteryarc-widget/batteryarc.lua
index 48233f3..54b4cf2 100644
--- a/batteryarc-widget/batteryarc.lua
+++ b/batteryarc-widget/batteryarc.lua
@@ -60,7 +60,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
widget.value = charge / 100
if status == 'Charging' then