Enable am toggle. (#8225)

This commit is contained in:
Nicolo Maio 2024-02-20 10:38:00 +01:00
parent 29a28ea203
commit 5842b14247
3 changed files with 18 additions and 1 deletions

View file

@ -5,6 +5,12 @@
local dirs = ntop.getDirs()
package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path
local do_am = ntop.getPrefs().active_monitoring
if (not do_am) then
-- exit if am is disabled
return
end
local ts_dump = require "ts_5min_dump_utils"
local am_utils = require "am_utils"