mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 15:39:33 +00:00
Reworked hosts listing in order to avoid/limit out-of-memory issues
Implemented aggregation of hosts and flows when using views
This commit is contained in:
parent
df957f9e55
commit
11f8c934d0
40 changed files with 391 additions and 354 deletions
|
|
@ -90,12 +90,9 @@ interface.select(ifname)
|
|||
if(sortOrder == "desc") then sOrder = false else sOrder = true end
|
||||
res = interface.getFlowsInfo(host, sortColumn, perPage, to_skip, sOrder)
|
||||
|
||||
flows_stats = res["flows"]
|
||||
flows_stats,total = aggregateFlowsStats(res)
|
||||
|
||||
print ("{ \"currentPage\" : " .. currentPage .. ",\n \"data\" : [\n")
|
||||
total = res["numFlows"]
|
||||
|
||||
--host = "a"
|
||||
|
||||
-- Prepare host
|
||||
host_list = {}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue