Fixes top talkers computation with VLAN-tagged traffic

This commit is contained in:
Simone Mainardi 2016-09-15 19:28:29 +02:00
parent d32c737047
commit 6d396c33ed
8 changed files with 82 additions and 67 deletions

View file

@ -34,13 +34,14 @@ local function getTopCountries(ifid, ifname)
end
local function getTopCountriesBy(ifid, ifname, filter_col, filter_val)
return getCurrentTopGroupsSeparated(ifid, ifname,
10, true, false,
filter_col, filter_val,
top_countries_intf.key,
top_countries_intf.JSONkey,
nil, true, nil,
top_countries_intf.uniqueKey)
local lastdump_key = getLastDumpKey(top_countries_intf.uniqueKey, filter_col, filter_val)
return getCurrentTopGroupsSeparated(ifid, ifname,
10, true, false,
filter_col, filter_val,
top_countries_intf.key,
top_countries_intf.JSONkey,
nil, true, nil,
lastdump_key)
end
local function getTopCountriesClean(ifid, ifname, param)