mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-30 16:09:32 +00:00
Unified alert details page for ch and not (#8825)
This commit is contained in:
parent
416de08b5d
commit
02760c9303
7 changed files with 96 additions and 115 deletions
|
|
@ -1288,22 +1288,6 @@ end
|
|||
|
||||
-- ##############################################
|
||||
|
||||
function format_common_info(flow_info, formatted_info)
|
||||
local predominant_bytes = i18n("traffic_srv_to_cli")
|
||||
|
||||
if (tonumber(flow_info["cli2srv_bytes"] or 0)) > (tonumber(flow_info["srv2cli_bytes"] or 0)) then
|
||||
predominant_bytes = i18n("traffic_cli_to_srv")
|
||||
end
|
||||
|
||||
formatted_info["predominant_direction"] = predominant_bytes
|
||||
formatted_info["server_traffic"] = bytesToSize(flow_info["srv2cli_bytes"] or 0)
|
||||
formatted_info["client_traffic"] = bytesToSize(flow_info["cli2srv_bytes"] or 0)
|
||||
|
||||
return formatted_info
|
||||
end
|
||||
|
||||
-- ##############################################
|
||||
|
||||
function format_proto_info(flow_details, proto_info)
|
||||
local proto_details = {}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue