mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 23:49:33 +00:00
Fixes flow status severity drilldown
This commit is contained in:
parent
f8a91c581e
commit
823d8a8689
7 changed files with 30 additions and 18 deletions
|
|
@ -211,11 +211,11 @@ function getFlowsFilter()
|
|||
if not isEmptyString(flow_status_severity) then
|
||||
local s
|
||||
|
||||
if flow_status_severity == "notice_and_lower" then
|
||||
if flow_status_severity == "notice_or_lower" then
|
||||
s = alert_consts.alert_severities.notice.severity_id
|
||||
elseif flow_status_severity == "warning" then
|
||||
s = alert_consts.alert_severities.warning.severity_id
|
||||
elseif flow_status_severity == "error_and_higher" then
|
||||
elseif flow_status_severity == "error_or_higher" then
|
||||
s = alert_consts.alert_severities.error.severity_id
|
||||
end
|
||||
|
||||
|
|
@ -1675,7 +1675,7 @@ function printActiveFlowsDropdown(base_url, page_params, ifstats, flowstats, is_
|
|||
entries = {}
|
||||
local severity_stats = flowstats["alert_levels"]
|
||||
|
||||
for _, s in ipairs({"notice_and_lower", "warning", "error_and_higher"}) do
|
||||
for _, s in ipairs({"notice_or_lower", "warning", "error_or_higher"}) do
|
||||
if severity_stats[s] and severity_stats[s] > 0 then
|
||||
entries[#entries + 1] = {s, (i18n("flow_details."..s) or s) .." ("..severity_stats[s]..")"}
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue