diff options
author | streetturtle <streetturtle@users.noreply.github.com> | 2019-03-06 10:37:09 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-06 10:37:09 -0500 |
commit | 8ad5c0a46059a7a25cc2c3a464fc6e43c5ba2fbb (patch) | |
tree | a9fa982bfbcf14fad4780dcc0c3627d54d001f18 /batteryarc-widget | |
parent | f24cbb9fa524241caa6b66c7891ad0e7b157e883 (diff) | |
parent | 63d4725399a9ac4dd4f99f2de7b33dbef5eac0a5 (diff) |
Merge pull request #72 from andyhelp/master
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 |