Fixed buggy spawning of os.time().

This commit is contained in:
ticktronaut 2019-08-01 10:35:16 +02:00
parent 372ae3c9e7
commit daf66a1a16
1 changed files with 1 additions and 1 deletions

View File

@ -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