Adding a new timeseries: how to add number of unrecheable flows client/server per host.

This commit is contained in:
Luca Deri 2019-03-06 10:05:05 +01:00
parent 9d09d2e616
commit 468558ddb4
16 changed files with 77 additions and 14 deletions

View file

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