mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-01 00:19:33 +00:00
More alert color fixes
This commit is contained in:
parent
2d62b8ed76
commit
a0ba02a5d9
1 changed files with 2 additions and 4 deletions
|
|
@ -34,9 +34,7 @@ interface.select(ifid)
|
|||
|
||||
local res = {
|
||||
series = {},
|
||||
fill = {
|
||||
colors = {}
|
||||
}
|
||||
colors = {}
|
||||
}
|
||||
|
||||
local count_data = all_alert_store:count_by_severity_and_time(true)
|
||||
|
|
@ -48,7 +46,7 @@ for _, severity in pairsByField(alert_severities, "severity_id", rev) do
|
|||
data = count_data[severity.severity_id],
|
||||
}
|
||||
|
||||
res.fill.colors[#res.fill.colors + 1] = severity.color
|
||||
res.colors[#res.colors + 1] = severity.color
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue