mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-05 02:16:39 +00:00
Removed double field in flow details (#6950)
This commit is contained in:
parent
f810eceaa1
commit
9428000b8a
2 changed files with 49 additions and 1 deletions
|
|
@ -1536,7 +1536,7 @@ else
|
|||
|
||||
local function format_custom_field(key, value, snmpdevice)
|
||||
local formatted_value = handleCustomFlowField(key, value, snmpdevice)
|
||||
|
||||
|
||||
if((tonumber(formatted_value)) and (math.floor(tonumber(formatted_value)) == 0)) then
|
||||
formatted_value = ''
|
||||
end
|
||||
|
|
@ -1546,6 +1546,14 @@ else
|
|||
|
||||
local num = 0
|
||||
for key,value in pairsByKeys(info) do
|
||||
if tonumber(key) then
|
||||
key = getFlowLabelFromId(key)
|
||||
end
|
||||
|
||||
if fieldAlreadyPresent(key, flow) then
|
||||
goto continue
|
||||
end
|
||||
|
||||
if(num == 0) then
|
||||
print("<tr><th colspan=3>"..i18n("flow_details.additional_flow_elements").."</th></tr>\n")
|
||||
end
|
||||
|
|
@ -1564,6 +1572,8 @@ else
|
|||
end
|
||||
|
||||
num = num + 1
|
||||
|
||||
::continue::
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue