mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 15:39:33 +00:00
Fixe nil score value
This commit is contained in:
parent
18bf059c6b
commit
0fce633dcc
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue