Adds sortable Score column to flows list

This commit is contained in:
Simone Mainardi 2020-01-16 17:09:46 +01:00
parent e1dd9f9c5c
commit 38facb051a
7 changed files with 47 additions and 5 deletions

View file

@ -305,9 +305,7 @@ for _key, value in ipairs(flows_stats) do -- pairsByValues(vals, funct) do
local info = value["info"]
if isScoreEnabled() then
if(value["score"] > 0) then
info = info .. string.format(" [<b>".. string.lower(i18n("score")) ..": %u</b>]", value["score"])
end
record["column_score"] = format_utils.formatValue(value["score"])
end
record["column_info"] = info