mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 23:49:33 +00:00
Removes old inefficient alert functions
This commit is contained in:
parent
1a59a9cc80
commit
228c85d850
4 changed files with 1 additions and 40 deletions
|
|
@ -789,24 +789,6 @@ end
|
|||
|
||||
-- ##############################################
|
||||
|
||||
function plugins_utils.hasAlerts(ifid, options)
|
||||
-- Requiring alert_utils here to optimize second.lua
|
||||
local alert_utils = require("alert_utils")
|
||||
|
||||
local opts = table.merge(options, {ifid = ifid})
|
||||
local old_ifid = interface.getId()
|
||||
local rv
|
||||
interface.select(ifid)
|
||||
|
||||
rv = (areAlertsEnabled() and
|
||||
(alert_utils.hasAlerts("historical", alert_utils.getTabParameters(opts, "historical")) or
|
||||
alert_utils.hasAlerts("engaged", alert_utils.getTabParameters(opts, "engaged"))))
|
||||
interface.select(''..old_ifid)
|
||||
return(rv)
|
||||
end
|
||||
|
||||
-- ##############################################
|
||||
|
||||
function plugins_utils.timeseriesCreationEnabled()
|
||||
return areSystemTimeseriesEnabled()
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue