mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-05 19:15:03 +00:00
Added support to remove nodes in case of special values in flow_data
This commit is contained in:
parent
8dfc314408
commit
b0dda316c1
2 changed files with 7 additions and 0 deletions
|
|
@ -82,6 +82,11 @@ local function formatEmptyStats(columns, flow, rename_field_list,
|
|||
element[key] = nil
|
||||
end
|
||||
end
|
||||
-- In case the value needs to be removed,
|
||||
-- e.g. if the peer ASN are 0, they needs to be skipped.
|
||||
if (column_info.hide_if_value) and (flow_element == column_info.hide_if_value) then
|
||||
element[key] = nil
|
||||
end
|
||||
if trace_stats then
|
||||
trace_string = string.format("%s [%s: %s]", trace_string,
|
||||
key,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue