Merge pull request #2121 from jokdarius/feature/0001-performace-fix

luci-mod-admin-full: performance fix
This commit is contained in:
Jo-Philipp Wich 2018-09-18 17:18:23 +02:00 committed by GitHub
commit e11980b150
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -53,7 +53,7 @@ local function get_ifstate(name, option)
m.uci:foreach("luci", "ifstate", function (s)
if s.interface == name then
val = m.uci:get("luci", s[".name"], option)
val = s[option]
return false
end
end)

View file

@ -17,7 +17,7 @@ local update_interfaces = function(old_ifname, new_ifname)
local info = { }
m.uci:foreach("network", "interface", function(section)
local old_ifnames = m.uci:get("network", section[".name"], "ifname")
local old_ifnames = section.ifname
local new_ifnames = { }
local cur_ifname
local changed = false