Added score in flow analysis table

This commit is contained in:
Luca Deri 2023-01-26 17:06:49 +01:00
parent 026ed076fc
commit f24c21bf6d
4 changed files with 31 additions and 13 deletions

View file

@ -32,6 +32,7 @@ for _, data in pairs(aggregated_info) do
local bytes_sent = data.bytes_sent
local bytes_rcvd = data.bytes_rcvd
local total_bytes = bytes_rcvd + bytes_sent
res[#res + 1] = {
flows = format_high_num_value_for_tables(data, 'num_flows'),
application = {
@ -45,6 +46,7 @@ for _, data in pairs(aggregated_info) do
bytes_rcvd = bytes_rcvd,
bytes_sent = bytes_sent,
tot_traffic = total_bytes,
tot_score = data.total_score,
num_servers = format_high_num_value_for_tables(data, 'num_servers'),
num_clients = format_high_num_value_for_tables(data, 'num_clients'),
vlan_id = {