Fixe nil score value

This commit is contained in:
MatteoBiscosi 2022-07-25 11:51:53 +02:00
parent 18bf059c6b
commit 0fce633dcc

View file

@ -793,7 +793,7 @@ local function dt_format_flow(processed_record, record)
flow["srv_port"] = processed_record["srv_port"]["value"]
end
local severity_id = map_score_to_severity(tonumber(record["SCORE"]))
local severity_id = map_score_to_severity(tonumber(record["SCORE"]) or 0)
local severity = alert_consts.alertSeverityById(severity_id)
flow["highlight"] = severity.color