summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorstreetturtle <streetturtle@gmail.com>2018-09-25 17:36:09 -0400
committerstreetturtle <streetturtle@gmail.com>2018-09-25 17:36:09 -0400
commite55a3ae77a8a3aeac8562ccae558048d81ed6e11 (patch)
treec1df258c4984047d016ee8bfb6aabfd376b0edaa
parent9c181c5c7002947c61f0632f8d8d395ac48afa58 (diff)
changed '//' to '/' - seems like it was a typo
-rw-r--r--battery-widget/battery.lua2
-rw-r--r--batteryarc-widget/batteryarc.lua2
2 files changed, 2 insertions, 2 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"
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