diff options
author | ticktronaut <andreas.gschossmann@oth-regensburg.de> | 2019-08-01 10:35:16 +0200 |
---|---|---|
committer | ticktronaut <andreas.gschossmann@oth-regensburg.de> | 2019-08-01 10:35:16 +0200 |
commit | daf66a1a16a091717de2baf5b8d24c098fc7a6e9 (patch) | |
tree | 21e27340e450e7ac2af207df32cd3b23a38f7fc3 /battery-widget | |
parent | 372ae3c9e7cab4b64b8dcaf31d9d2d921a723585 (diff) |
Fixed buggy spawning of os.time().
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 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 |