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:
Luca 2015-12-27 18:55:50 +01:00
parent df957f9e55
commit 11f8c934d0
40 changed files with 391 additions and 354 deletions

View file

@ -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 = {}