mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 07:29:32 +00:00
Fix Flow Exporters labels in live flows.
This commit is contained in:
parent
936e4c7e1d
commit
047d0a178e
1 changed files with 8 additions and 2 deletions
|
|
@ -1621,12 +1621,18 @@ function format_name_value(name, value, shorten)
|
|||
|
||||
if not isEmptyString(name) and name ~= value then
|
||||
if (shorten) and (shorten == true) then
|
||||
formatted_name_value = shortenString(name) .. " [" .. value .. "]"
|
||||
formatted_name_value = shortenString(name)
|
||||
else
|
||||
formatted_name_value = name .. " [" .. value .. "]"
|
||||
formatted_name_value = name
|
||||
end
|
||||
end
|
||||
|
||||
local idx = string.find(formatted_name_value, value)
|
||||
|
||||
if (idx == nil) then
|
||||
formatted_name_value = formatted_name_value .. " ["..value.."]"
|
||||
end
|
||||
|
||||
return formatted_name_value
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue