Quota gui improvements

- Filter flows with blocked traffic
- Filter hosts with blocked traffic
- Improve flow_details quota report
This commit is contained in:
emanuele-f 2017-06-05 18:09:56 +02:00
parent 5435d0b71b
commit 12d0e8a0bb
14 changed files with 91 additions and 28 deletions

View file

@ -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")