mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-30 16:09:32 +00:00
Reverts allowed interfaces fixes to make room for simplified code
This commit is contained in:
parent
3f45eaabc3
commit
dfb2401789
13 changed files with 212 additions and 155 deletions
|
|
@ -131,12 +131,13 @@ end
|
|||
-- ########################################################
|
||||
|
||||
function top_talkers_utils.makeTopJson(_ifname, save_checkpoint)
|
||||
local ifid = getInterfaceId(_ifname)
|
||||
if save_checkpoint == nil then save_checkpoint = true end
|
||||
|
||||
local res = {}
|
||||
|
||||
local in_time = callback_utils.foreachHost(_ifname, os.time() + 60 --[[1 minute --]], function (hostname, hoststats)
|
||||
local checkpoint = interface.checkpointHostTalker(hostname, save_checkpoint)
|
||||
local checkpoint = interface.checkpointHostTalker(ifid, hostname, save_checkpoint)
|
||||
|
||||
if(checkpoint == nil) then
|
||||
goto continue
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue