mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-01 00:19:33 +00:00
Reworks Historical Flow Explorer UI to query on aggregated flows tables
This commit is contained in:
parent
95fb2a133d
commit
ffd45a6e41
6 changed files with 135 additions and 51 deletions
|
|
@ -55,6 +55,15 @@ if(format == "txt") then
|
|||
limit = 99999
|
||||
currentPage = 1
|
||||
perPage = limit
|
||||
else
|
||||
if limit == nil then
|
||||
-- when flow aggregation is used, requests can be made with a nil limit so it is important to re-calculate it
|
||||
local count = getNumFlows(ifId, ip_version, host, (l4proto or ""), (port or ""), (l7proto or ""), (info or ""),
|
||||
epoch_begin, epoch_end, true --[[ force count from the raw flows table --]])
|
||||
if count ~= nil and count[1] ~= nil then
|
||||
limit = count[1]["TOT_FLOWS"]
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
res = getInterfaceTopFlows(ifId, ip_version, host, peer, (l7proto or ""), (l4proto or ""), (port or ""), (info or ""),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue