diff options
author | streetturtle <streetturtle@users.noreply.github.com> | 2019-09-01 21:45:07 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-09-01 21:45:07 -0400 |
commit | 7dc7ab5ca6fc5efa81cd65603a1956f6856522c0 (patch) | |
tree | b8e438d21c95064545bc6633372fe0b245440627 /battery-widget | |
parent | 4ed3e8d90a080461a0fb964e3459d3dae76b868e (diff) | |
parent | daf66a1a16a091717de2baf5b8d24c098fc7a6e9 (diff) |
Merge pull request #89 from ticktronaut/some_fixes
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 |