mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-30 07:59:35 +00:00
Applies host filter criteria in C
Hosts are filtered directly in C to improve efficiency. This commit also fixes #498 and partially addresses #486
This commit is contained in:
parent
7b55e1fc8d
commit
466fde46df
7 changed files with 89 additions and 91 deletions
|
|
@ -101,8 +101,9 @@ if(sortOrder == "desc") then sOrder = false else sOrder = true end
|
|||
if((mac ~= nil) or (antenna_mac ~= nil) or (mode == "local")) then
|
||||
hosts_stats = interface.getLocalHostsInfo(false, sortColumn, perPage, to_skip, sOrder, country) -- false = little details
|
||||
else
|
||||
hosts_stats = interface.getHostsInfo(false, sortColumn, perPage, to_skip, sOrder, country) -- false = little details
|
||||
-- hosts_stats = interface.getGroupedHosts(vlan_n, as_n, network_n, country_n, os_n)
|
||||
-- hosts_stats = interface.getHostsInfo(false, sortColumn, perPage, to_skip, sOrder, country) -- false = little details
|
||||
hosts_stats = interface.getHostsInfo(false, sortColumn, perPage, to_skip, sOrder, country, os_, tonumber(vlan), tonumber(asn), tonumber(network)) -- false = little details
|
||||
-- tprint(hosts_stats)
|
||||
end
|
||||
|
||||
hosts_stats,total = aggregateHostsStats(hosts_stats)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue