mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-01 00:19:33 +00:00
Tiny network device changes
This commit is contained in:
parent
9147def513
commit
f156b64786
7 changed files with 55 additions and 28 deletions
|
|
@ -22,6 +22,12 @@ network_n = _GET["network"]
|
|||
country_n = _GET["country"]
|
||||
os_n = _GET["os"]
|
||||
|
||||
if(_GET["mode"] == "hostsonly") then
|
||||
mac_n = true
|
||||
else
|
||||
mac_n = false
|
||||
end
|
||||
|
||||
if (group_col == nil) then
|
||||
group_col = "asn"
|
||||
end
|
||||
|
|
@ -78,7 +84,7 @@ vals = {}
|
|||
stats_by_group_col = {}
|
||||
|
||||
interface.select(ifname)
|
||||
stats_by_group_key = interface.getGroupedHosts(false, "column_"..group_col, country_n, os_n, tonumber(vlan_n), tonumber(as_n), tonumber(network_n)) -- false = little details)
|
||||
stats_by_group_key = interface.getGroupedHosts(false, "column_"..group_col, country_n, os_n, tonumber(vlan_n), tonumber(as_n), tonumber(network_n), mac_n) -- false = little details)
|
||||
stats_by_group_col = stats_by_group_key
|
||||
|
||||
--[[
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue