Implements flow lua callbacks in the periodic activities thread

This commit is contained in:
Simone Mainardi 2019-09-12 15:36:41 +02:00
parent 11034a95d2
commit 968e21d984
14 changed files with 182 additions and 116 deletions

View file

@ -210,11 +210,6 @@ function ts_dump.run_min_dump(_ifname, ifstats, iface_ts, config, when, verbose)
dumpTopTalkers(_ifname, ifstats, verbose)
scanAlerts("min", ifstats)
-- Run lua scripts on flows
local tstart = ntop.gettimemsec()
interface.checkFlowsLua()
traceError(TRACE_INFO, TRACE_CONSOLE, string.format("flow.lua took %.2f seconds", (ntop.gettimemsec() - tstart)))
local iface_rrd_creation_enabled = (ntop.getPref("ntopng.prefs.ifid_"..ifstats.id..".interface_rrd_creation") ~= "false")
and (ntop.getPref("ntopng.prefs.interface_rrd_creation") ~= "0")