ntopng/scripts/callbacks/interface/ht_state_update.lua

19 lines
557 B
Lua

--
-- (C) 2013 - ntop.org
--
local dirs = ntop.getDirs()
package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path
require "lua_utils"
-- Keep it in sync with HT_STATE_UPDATE_SCRIPT_PATH periodicity in PeriodicActivities.cpp
-- that is, with the frequency of execution of this script.
local HT_STATE_UPDATE_FREQ = 5
-- ########################################################
local deadline = os.time() + HT_STATE_UPDATE_FREQ
interface.periodicHTStateUpdate(deadline)
-- ########################################################