Reverts allowed interfaces fixes to make room for simplified code

This commit is contained in:
Simone Mainardi 2018-08-20 22:48:55 +02:00
parent 3f45eaabc3
commit dfb2401789
13 changed files with 212 additions and 155 deletions

View file

@ -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