Fixed flow statistics in host_get_json.lua

Fixed TCP flags
Smaller cosmetic fixes
This commit is contained in:
Luca Deri 2016-05-30 22:58:08 +02:00
parent 1013df7db9
commit 79022c7238
6 changed files with 56 additions and 27 deletions

View file

@ -1,4 +1,3 @@
--
-- (C) 2013-16 - ntop.org
--
@ -55,7 +54,8 @@ else
host_stats_flows_num = tonumber(host_stats_flows_num)
end
local total = 0
local flows = interface.getFlowsInfo(host, nil, "column_bytes", host_stats_flows_num, 0, false)
local flows = interface.getFlowsInfo(host_info["host"], nil, "column_bytes", host_stats_flows_num, 0, false)
flows,total = aggregateFlowsStats(flows)
for i, fl in ipairs(flows) do
flows[i] = {