summaryrefslogtreecommitdiff
path: root/battery-widget
diff options
context:
space:
mode:
authorticktronaut <andreas.gschossmann@oth-regensburg.de>2019-08-01 10:35:16 +0200
committerstreetturtle <streetturtle@gmail.com>2019-09-02 15:50:05 -0400
commite1b866e23753e69ce27db64dc6b6b261e6022e24 (patch)
tree4dd24f4f544383224513ef31795c6d426a979b1c /battery-widget
parent2752c06548c419ba657adb67e7a94a1dc5d5d1fa (diff)
Fixed buggy spawning of os.time().
Diffstat (limited to 'battery-widget')
-rw-r--r--battery-widget/battery.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/battery-widget/battery.lua b/battery-widget/battery.lua
index 6d9f086..aa3623d 100644
--- a/battery-widget/battery.lua
+++ b/battery-widget/battery.lua
@@ -109,7 +109,7 @@ watch("acpi -i", 10,
batteryType = "battery-empty%s-symbolic"
if status ~= 'Charging' and os.difftime(os.time(), last_battery_check) > 300 then
-- if 5 minutes have elapsed since the last warning
- last_battery_check = time()
+ last_battery_check = os.time()
show_battery_warning()
end