mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 23:49:33 +00:00
Added extra parameter to enable anchor generation only if timeseries exist. This check needs to be used when displaying reports of host timeseries
This commit is contained in:
parent
1db26e5d07
commit
eb92eb76de
2 changed files with 43 additions and 32 deletions
|
|
@ -129,7 +129,7 @@ for _key, value in ipairs(flows_stats) do -- pairsByValues(vals, funct) do
|
|||
if value["cli.allowed_host"] and not ifstats.isViewed then
|
||||
local src_name = shortenString(stripVlan(cli_name))
|
||||
if(value["cli.systemhost"] == true) then src_name = src_name .. " <i class='fas fa-flag'></i>" end
|
||||
src_key = hostinfo2detailshref(flow2hostinfo(value, "cli"), nil, src_name, cli_tooltip)
|
||||
src_key = hostinfo2detailshref(flow2hostinfo(value, "cli"), nil, src_name, cli_tooltip, false)
|
||||
|
||||
if value["cli.port"] > 0 then
|
||||
src_port = "<A HREF='"..ntop.getHttpPrefix().."/lua/flows_stats.lua?port=" .. value["cli.port"]
|
||||
|
|
@ -151,7 +151,7 @@ for _key, value in ipairs(flows_stats) do -- pairsByValues(vals, funct) do
|
|||
if value["srv.allowed_host"] and not ifstats.isViewed then
|
||||
local dst_name = shortenString(stripVlan(srv_name))
|
||||
if(value["srv.systemhost"] == true) then dst_name = dst_name .. " <i class='fas fa-flag'></i>" end
|
||||
dst_key = hostinfo2detailshref(flow2hostinfo(value, "srv"), nil, dst_name, srv_tooltip)
|
||||
dst_key = hostinfo2detailshref(flow2hostinfo(value, "srv"), nil, dst_name, srv_tooltip, false)
|
||||
|
||||
if value["srv.port"] > 0 then
|
||||
dst_port="<A HREF='"..ntop.getHttpPrefix().."/lua/flows_stats.lua?port=" .. value["srv.port"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue