mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 15:39:33 +00:00
Fix filters being lost after selecting local/remote hosts filter
This commit is contained in:
parent
ec6972ba9d
commit
2141004cc6
2 changed files with 49 additions and 45 deletions
|
|
@ -2527,6 +2527,19 @@ function table.merge(a, b)
|
|||
return merged
|
||||
end
|
||||
|
||||
function table.clone(t, filter)
|
||||
local clone = {}
|
||||
local filter = filter or function (k, v) return true end
|
||||
|
||||
for k, v in pairs(t) do
|
||||
if filter(k, v) then
|
||||
clone[k] = v
|
||||
end
|
||||
end
|
||||
|
||||
return clone
|
||||
end
|
||||
|
||||
function toboolean(s)
|
||||
if s == "true" then
|
||||
return true
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue