Added the ability to solt flows by serial that is useful for sorting traffic according to the time flows have been created

This commit is contained in:
Luca Deri 2022-10-08 11:22:04 +02:00
parent 06e2cd00c3
commit d0e42b03f3
10 changed files with 26 additions and 12 deletions

View file

@ -303,6 +303,7 @@ for _key, value in ipairs(flows_stats) do -- pairsByValues(vals, funct) do
end
record["column_duration"] = secondsToTime(value["duration"])
record["column_bytes"] = value["bytes"]
-- record["column_serial"] = value["flow_serial"]
local column_thpt = ''
if(throughput_type == "pps") then
@ -347,8 +348,9 @@ local result = {
totalRows = total,
data = formatted_res,
sort = {
{flows_filter["sortColumn"],
flows_filter["sortOrder"]}
{
flows_filter["sortColumn"],
flows_filter["sortOrder"]}
},
}