mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-30 07:59:35 +00:00
Fix alert_endpoints_utils.lua error 'attempt to compare number with string' #2795
This commit is contained in:
parent
5e914130af
commit
14c0338b64
1 changed files with 1 additions and 1 deletions
|
|
@ -128,7 +128,7 @@ function alert_endpoints.dispatchNotification(message, json_message)
|
|||
loadModules()
|
||||
|
||||
for _, m in ipairs(modules) do
|
||||
if message.alert_severity >= alertSeverity(m.severity) then
|
||||
if tonumber(message.alert_severity) >= alertSeverity(m.severity) then
|
||||
ntop.rpushCache(m.export_queue, json_message, MAX_NUM_PER_MODULE_QUEUED_ALERTS)
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue