From 6cf7a284ef440e5b59efc5ffe69e3b1f28a6b646 Mon Sep 17 00:00:00 2001 From: Steven Barth Date: Wed, 30 Apr 2008 19:33:48 +0000 Subject: [PATCH] * Fixed a bug in Luci Splash where splash leases were deleted after the next sync although they are not outdated --- contrib/package/ffluci-splash/src/luci-splash.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/package/ffluci-splash/src/luci-splash.lua b/contrib/package/ffluci-splash/src/luci-splash.lua index ff876c3fd..1520491e0 100644 --- a/contrib/package/ffluci-splash/src/luci-splash.lua +++ b/contrib/package/ffluci-splash/src/luci-splash.lua @@ -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 -- 2.11.0