mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 07:29:32 +00:00
Quota gui improvements
- Filter flows with blocked traffic - Filter hosts with blocked traffic - Improve flow_details quota report
This commit is contained in:
parent
5435d0b71b
commit
12d0e8a0bb
14 changed files with 91 additions and 28 deletions
|
|
@ -107,17 +107,21 @@ to_skip = (currentPage-1) * perPage
|
|||
|
||||
if(sortOrder == "desc") then sOrder = false else sOrder = true end
|
||||
|
||||
local filtered_hosts = false
|
||||
|
||||
hosts_retrv_function = interface.getHostsInfo
|
||||
if mode == "local" then
|
||||
hosts_retrv_function = interface.getLocalHostsInfo
|
||||
elseif mode == "remote" then
|
||||
hosts_retrv_function = interface.getRemoteHostsInfo
|
||||
elseif mode == "filtered" then
|
||||
filtered_hosts = true
|
||||
end
|
||||
|
||||
hosts_stats = hosts_retrv_function(false, sortColumn, perPage, to_skip, sOrder,
|
||||
country, os_, tonumber(vlan), tonumber(asn),
|
||||
tonumber(network), mac,
|
||||
tonumber(pool), tonumber(ipversion), tonumber(protocol)) -- false = little details
|
||||
tonumber(pool), tonumber(ipversion), tonumber(protocol), filtered_hosts) -- false = little details
|
||||
|
||||
-- tprint(hosts_stats)
|
||||
--io.write("---\n")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue