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

@ -62,14 +62,14 @@ end
interface.select(ifname)
if((group_col == "mac") or (group_col == "antenna_mac")) then
hosts_stats = interface.getLocalHostsInfo()
hosts_stats,total = aggregateHostsStats(interface.getLocalHostsInfo())
--PRINT
-- for n in pairs(hosts_stats) do
-- io.write("= "..n..'\n')
-- end
else
hosts_stats = interface.getHostsInfo()
hosts_stats,total = aggregateHostsStats(interface.getHostsInfo())
end
to_skip = (currentPage-1) * perPage