* Fixed a bug in Luci Splash where splash leases were deleted after the next sync although they are not outdated

This commit is contained in:
Steven Barth 2008-04-30 19:33:48 +00:00
parent c0a991bfcd
commit 6cf7a284ef

View file

@ -145,7 +145,7 @@ function sync()
-- For all leases
for k, v in pairs(uci:show("luci_splash")) do
for k, v in pairs(leases) do
if v[".type"] == "lease" then
if os.difftime(time, tonumber(v.start)) > leasetime then
-- Remove expired