mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-28 23:19:33 +00:00
Adds toggle to exclude one-way-traffic hosts from timeseries gen
This commit is contained in:
parent
5e60fb19c9
commit
d1600d0e9b
6 changed files with 49 additions and 7 deletions
|
|
@ -154,15 +154,15 @@ end
|
|||
|
||||
-- Iterates each active host on the ifname interface for RRD creation.
|
||||
-- Each host is passed to the callback with some more information.
|
||||
function callback_utils.foreachLocalRRDHost(ifname, deadline, with_ts, callback)
|
||||
function callback_utils.foreachLocalRRDHost(ifname, deadline, with_ts, with_one_way_traffic_hosts, callback)
|
||||
interface.select(ifname)
|
||||
|
||||
local iterator
|
||||
|
||||
if with_ts then
|
||||
iterator = callback_utils.getLocalHostsTsIterator()
|
||||
iterator = callback_utils.getLocalHostsTsIterator(nil --[[ show_details --]], nil --[[ maxHits --]], nil --[[ anomalousOnly --]], with_one_way_traffic_hosts)
|
||||
else
|
||||
iterator = callback_utils.getLocalHostsIterator(false --[[no details]])
|
||||
iterator = callback_utils.getLocalHostsIterator(false --[[ show_details --]], nil --[[ maxHits --]], nil --[[ anomalousOnly --]], with_one_way_traffic_hosts)
|
||||
end
|
||||
|
||||
for hostname, host_ts in iterator do
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue