Skip to content

Commit

Permalink
batteryarc-widget: fix calling time() function
Browse files Browse the repository at this point in the history
  • Loading branch information
andrzej-bieniek committed Mar 5, 2019
1 parent f24cbb9 commit 63d4725
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion batteryarc-widget/batteryarc.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 63d4725

Please sign in to comment.