mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-30 07:59:35 +00:00
Ensure that lua_utils is properly loaded while running system scripts tasks
Fixes #2665
This commit is contained in:
parent
ebb74cd76f
commit
eec3c19485
1 changed files with 6 additions and 0 deletions
|
|
@ -115,6 +115,12 @@ function system_scripts.runTask(task, when)
|
|||
local periodicity = task_to_periodicity[task]
|
||||
local default_schema_options = { step = periodicity, is_system_schema = true }
|
||||
|
||||
if(task ~= "second") then
|
||||
-- Do not include this in the second script as it has a performance
|
||||
-- impact of about 100ms
|
||||
require("lua_utils")
|
||||
end
|
||||
|
||||
if(periodicity == nil) then
|
||||
return(false)
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue