mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 15:39:33 +00:00
Cleaned up alert prioriti queueing
This commit is contained in:
parent
588e330f18
commit
b7d97b73d3
19 changed files with 112 additions and 153 deletions
|
|
@ -111,7 +111,7 @@ end
|
|||
-- ##############################################
|
||||
|
||||
-- Function called periodically to process queued alerts to be delivered via telegram
|
||||
function telegram.dequeueRecipientAlerts(recipient, budget, high_priority)
|
||||
function telegram.dequeueRecipientAlerts(recipient, budget)
|
||||
local start_time = os.time()
|
||||
local sent = 0
|
||||
local more_available = true
|
||||
|
|
@ -130,7 +130,7 @@ function telegram.dequeueRecipientAlerts(recipient, budget, high_priority)
|
|||
-- Dequeue max_alerts_per_request notifications
|
||||
local notifications = {}
|
||||
for i=1, max_alerts_per_request do
|
||||
local notification = ntop.recipient_dequeue(recipient.recipient_id, high_priority)
|
||||
local notification = ntop.recipient_dequeue(recipient.recipient_id)
|
||||
if notification then
|
||||
notifications[#notifications + 1] = notification.alert
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue