Fixes redefinition of variable causing missing flows

This commit is contained in:
Simone Mainardi 2019-03-06 10:43:26 +01:00
parent 6b5e65dfce
commit a3701168fe

View file

@ -190,13 +190,8 @@ if not isEmptyString(tcp_state) then
end
local flows_stats = interface.getFlowsInfo(host, pageinfo)
local total
local flows_stats
if(flows_stats ~= nil) then
total = flows_stats["numFlows"]
flows_stats = flows_stats["flows"]
end
local total = flows_stats["numFlows"]
local flows_stats = flows_stats["flows"]
-- Prepare host
local host_list = {}