Shows traffic profile in nIndex flows

Implements #4316
This commit is contained in:
Simone Mainardi 2020-08-31 10:12:52 +02:00
parent cb1e4400c6
commit cef4e57641
2 changed files with 13 additions and 1 deletions

View file

@ -37,6 +37,18 @@ end
-- #######################
function formatTrafficProfile(profile)
local res = ""
if not isEmptyString(profile) then
res = "<span class='badge badge-primary'>"..profile.."</span> "
end
return res
end
-- #######################
-- Extracts the information serialized into status_info from the flow
-- user scripts
function flow2statusinfo(flow)