mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-10 00:42:14 +00:00
19 lines
557 B
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)
|
|
|
|
-- ########################################################
|
|
|