mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-22 02:38:59 +00:00
Fix errors in RTT hosts import/reset
This commit is contained in:
parent
e360f51124
commit
93c2ce2b6b
2 changed files with 7 additions and 5 deletions
|
|
@ -130,10 +130,10 @@ end
|
|||
-- ##############################################
|
||||
|
||||
function rtt_utils.resetConfig()
|
||||
local hosts = rtt_utils.getHosts(true --[[ config only]])
|
||||
local hosts = rtt_utils.getHosts()
|
||||
|
||||
for k in pairs(hosts) do
|
||||
rtt_utils.deleteHost(k)
|
||||
for k,v in pairs(hosts) do
|
||||
rtt_utils.deleteHost(v.host, v.measurement)
|
||||
end
|
||||
|
||||
ntop.delCache(rtt_hosts_key)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue