From 942d5812862208a6f94de85ed9cb729be574591f Mon Sep 17 00:00:00 2001 From: Simone Mainardi Date: Tue, 7 Jun 2016 12:58:48 +0200 Subject: [PATCH] Improves hover text contents with full host name Implements #596 --- scripts/lua/get_flows_data.lua | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/scripts/lua/get_flows_data.lua b/scripts/lua/get_flows_data.lua index d716be0580..aa7b93daea 100644 --- a/scripts/lua/get_flows_data.lua +++ b/scripts/lua/get_flows_data.lua @@ -359,12 +359,15 @@ for _key, _value in pairsByKeys(vals, funct) do if(cli_name == nil) then cli_name = "???" end if(srv_name == nil) then srv_name = "???" end + local cli_tooltip = cli_name + local srv_tooltip = srv_name + if((value["tcp.nw_latency.client"] ~= nil) and (value["tcp.nw_latency.client"] > 0)) then - cli_tooltip = "client nw latency: "..string.format("%.3f", value["tcp.nw_latency.client"]).." ms" + cli_tooltip = cli_tooltip.." nw latency: "..string.format("%.3f", value["tcp.nw_latency.client"]).." ms" end if((value["tcp.nw_latency.server"] ~= nil) and (value["tcp.nw_latency.server"] > 0)) then - srv_tooltip = "server nw latency: "..string.format("%.3f", value["tcp.nw_latency.server"]).." ms" + srv_tooltip = srv_tooltip.." nw latency: "..string.format("%.3f", value["tcp.nw_latency.server"]).." ms" end if(value["cli.allowed_host"]) then