mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-01 00:19:33 +00:00
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:
parent
01172f94fc
commit
fe5c6377aa
17 changed files with 48 additions and 30 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue