Recipient budget is no longer staticly assigned but a portion of the total budget

equally shared among the configured recipients with a cap of 1000
This commit is contained in:
Luca 2020-12-14 14:40:47 +01:00
parent e1158fb855
commit 48641b2e81
2 changed files with 7 additions and 2 deletions

View file

@ -132,8 +132,8 @@ end
-- Dequeue alerts from a recipient queue for sending notifications
function syslog.dequeueRecipientAlerts(recipient, budget, high_priority)
local settings = readSettings(recipient)
local notifications = {}
for i = 1, budget do
local notification = ntop.recipient_dequeue(recipient.recipient_id, high_priority)
if notification then