Adds numFlows to flows retrieval for proper pagination

numFlows was suppressed in an earlier commit but this caused
issues with pagination of results.
This commit is contained in:
Simone Mainardi 2016-08-25 18:30:27 +02:00
parent 01172f94fc
commit fe5c6377aa
17 changed files with 48 additions and 30 deletions

View file

@ -101,8 +101,9 @@ if application ~= nil and application ~= "" then
--print(paginfo["l7protoFilter"].." / "..application)
end
flows_stats = interface.getFlowsInfo(host, paginfo)
total = #flows_stats
local flows_stats = interface.getFlowsInfo(host, paginfo)
local total = flows_stats["numFlows"]
flows_stats = flows_stats["flows"]
print ("{ \"currentPage\" : " .. currentPage .. ",\n \"data\" : [\n")
-- tprint(flows_stats)