batteryarc-widget: fix calling time() function
This commit is contained in:
parent
f24cbb9fa5
commit
63d4725399
|
@ -94,7 +94,7 @@ watch("acpi -i", 10,
|
||||||
batteryarc.colors = { beautiful.widget_red }
|
batteryarc.colors = { beautiful.widget_red }
|
||||||
if status ~= 'Charging' and os.difftime(os.time(), last_battery_check) > 300 then
|
if status ~= 'Charging' and os.difftime(os.time(), last_battery_check) > 300 then
|
||||||
-- if 5 minutes have elapsed since the last warning
|
-- if 5 minutes have elapsed since the last warning
|
||||||
last_battery_check = time()
|
last_battery_check = os.time()
|
||||||
|
|
||||||
show_battery_warning()
|
show_battery_warning()
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue