diff options
author | Andrzej Bieniek <andyhelp@gmail.com> | 2019-03-05 22:08:20 +0000 |
---|---|---|
committer | Andrzej Bieniek <andyhelp@gmail.com> | 2019-03-05 22:08:20 +0000 |
commit | 63d4725399a9ac4dd4f99f2de7b33dbef5eac0a5 (patch) | |
tree | a9fa982bfbcf14fad4780dcc0c3627d54d001f18 /batteryarc-widget | |
parent | f24cbb9fa524241caa6b66c7891ad0e7b157e883 (diff) |
batteryarc-widget: fix calling time() function
Diffstat (limited to 'batteryarc-widget')
-rw-r--r-- | batteryarc-widget/batteryarc.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/batteryarc-widget/batteryarc.lua b/batteryarc-widget/batteryarc.lua index 1727ee1..cc6fbc4 100644 --- a/batteryarc-widget/batteryarc.lua +++ b/batteryarc-widget/batteryarc.lua @@ -94,7 +94,7 @@ watch("acpi -i", 10, batteryarc.colors = { beautiful.widget_red } 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 |