diff options
author | Steven Barth <steven@midlink.org> | 2008-04-30 19:33:48 +0000 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2008-04-30 19:33:48 +0000 |
commit | 6cf7a284ef440e5b59efc5ffe69e3b1f28a6b646 (patch) | |
tree | 282d50ed0d3c082ee6193fbea09d450b3e959388 /contrib | |
parent | c0a991bfcd48caeae5a0314023abea78ab07f594 (diff) |
* Fixed a bug in Luci Splash where splash leases were deleted after the next sync although they are not outdated
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/package/ffluci-splash/src/luci-splash.lua | 2 |
1 files changed, 1 insertions, 1 deletions
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 |