mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 15:39:33 +00:00
Improvements in status definition API
This commit is contained in:
parent
2f984277ca
commit
7a14a9cf11
39 changed files with 50 additions and 50 deletions
|
|
@ -241,10 +241,10 @@ for _key, value in ipairs(flows_stats) do -- pairsByValues(vals, funct) do
|
|||
local status_info = flow_consts.getStatusDescription(value["flow.status"], flow2statusinfo(value))
|
||||
if value["flow.alerted"] then
|
||||
column_proto_l4 = "<i class='fa fa-warning' style='color: #B94A48' title='"..noHtml(status_info) .."'></i> "
|
||||
elseif value["status_map"] and value["flow.status"] ~= flow_consts.flow_status_types.status_normal.status_id then
|
||||
elseif value["status_map"] and value["flow.status"] ~= flow_consts.status_types.status_normal.status_id then
|
||||
local title = ''
|
||||
|
||||
for _, t in pairs(flow_consts.flow_status_types) do
|
||||
for _, t in pairs(flow_consts.status_types) do
|
||||
local id = t.status_id
|
||||
if ntop.bitmapIsSet(value["status_map"], id) then
|
||||
if title ~= '' then
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue