mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-05 10:41:34 +00:00
Fixes Download Records in Historical Flows not working (#9643)
This commit is contained in:
parent
831b2ad9ea
commit
568e0b1c2b
1 changed files with 11 additions and 7 deletions
|
|
@ -1546,7 +1546,8 @@ end
|
|||
|
||||
-- #####################################
|
||||
|
||||
function historical_flow_utils.get_flow_columns_to_tags(aggregated)
|
||||
function historical_flow_utils.get_flow_columns_to_tags(aggregated, real_cols_only)
|
||||
|
||||
local c2t = {}
|
||||
local t2c = {}
|
||||
|
||||
|
|
@ -1567,15 +1568,18 @@ function historical_flow_utils.get_flow_columns_to_tags(aggregated)
|
|||
end
|
||||
end
|
||||
|
||||
for k, v in pairs(additional_flow_columns) do
|
||||
if v.tag then
|
||||
if not t2c[v.tag] then -- tag not already defined in real columns
|
||||
c2t[k] = v.tag
|
||||
-- t2c[v.tag] = k
|
||||
-- if real_cols_only is provided, exclude additional_flow_columns for historical flow export errors
|
||||
if not real_cols_only then
|
||||
for k, v in pairs(additional_flow_columns) do
|
||||
if v.tag then
|
||||
if not t2c[v.tag] then -- tag not already defined in real columns
|
||||
c2t[k] = v.tag
|
||||
-- t2c[v.tag] = k
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
return c2t
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue