mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-30 16:09:32 +00:00
Engaged alerts are always active by definition, ignore begin epoch
This commit is contained in:
parent
3fb438a24f
commit
740102dc22
1 changed files with 4 additions and 0 deletions
|
|
@ -892,8 +892,12 @@ function alert_store:select_engaged(filter)
|
|||
for idx, alert in pairs(alerts) do
|
||||
-- Exclude alerts falling outside requested time ranges
|
||||
local tstamp = tonumber(alert.tstamp)
|
||||
|
||||
-- Engaged alerts are currently active, ignore begin epoch
|
||||
if self._epoch_begin and tstamp < self._epoch_begin then goto continue end
|
||||
|
||||
if self._epoch_end and tstamp > self._epoch_end then goto continue end
|
||||
|
||||
if self._subtype and alert.subtype ~= self._subtype then goto continue end
|
||||
|
||||
if self._order_by and self._order_by.sort_column and alert[self._order_by.sort_column] ~= nil then
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue