mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-01 16:30:10 +00:00
Removed useless imports in lua code upping the memory usage
This commit is contained in:
parent
2f76c9bf4b
commit
dbf4bf2a2b
53 changed files with 2981 additions and 3255 deletions
|
|
@ -14,7 +14,6 @@ package.path = dirs.installdir .. "/scripts/lua/modules/pools/?.lua;" .. package
|
|||
|
||||
local json = require "dkjson"
|
||||
local alert_severities = require "alert_severities"
|
||||
local alert_consts = require "alert_consts"
|
||||
local alert_entities = require "alert_entities"
|
||||
local checks = require "checks"
|
||||
local endpoints = require("endpoints")
|
||||
|
|
@ -366,6 +365,7 @@ local function format_recipient_checks(checks_list)
|
|||
return nil
|
||||
end
|
||||
|
||||
local alert_consts = require "alert_consts"
|
||||
local list = checks_list:split(",") or { checks_list }
|
||||
local formatted_list = {}
|
||||
local num_alerts = 0
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue