summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrzej Bieniek <andyhelp@gmail.com>2019-03-05 22:08:20 +0000
committerAndrzej Bieniek <andyhelp@gmail.com>2019-03-05 22:08:20 +0000
commit63d4725399a9ac4dd4f99f2de7b33dbef5eac0a5 (patch)
treea9fa982bfbcf14fad4780dcc0c3627d54d001f18
parentf24cbb9fa524241caa6b66c7891ad0e7b157e883 (diff)
batteryarc-widget: fix calling time() function
-rw-r--r--batteryarc-widget/batteryarc.lua2
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