mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-28 23:19:33 +00:00
timeseries dump changes for introducing custom callback
This commit is contained in:
parent
e555e67ae8
commit
6f2096d1cc
4 changed files with 62 additions and 13 deletions
|
|
@ -160,12 +160,12 @@ end
|
|||
|
||||
-- ########################################################
|
||||
|
||||
-- Iterates each active host on the ifname interface for RRD creation.
|
||||
-- Iterates each active host on the ifname interface for timeseries creation.
|
||||
-- Each host is passed to the callback with some more information.
|
||||
function callback_utils.foreachLocalRRDHost(ifname, with_ts, with_one_way_traffic_hosts, callback)
|
||||
interface.select(ifname)
|
||||
|
||||
function callback_utils.foreachLocalTimeseriesHost(ifname, with_ts, with_one_way_traffic_hosts, callback)
|
||||
local iterator
|
||||
|
||||
interface.select(ifname)
|
||||
|
||||
if with_ts then
|
||||
iterator = callback_utils.getLocalHostsTsIterator(nil --[[ show_details --]], nil --[[ maxHits --]], nil --[[ anomalousOnly --]], with_one_way_traffic_hosts)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue