mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-05 10:41:34 +00:00
Implemented lua caching to speedump hostname and interface mapping lookup
This commit is contained in:
parent
8d13fe3411
commit
e0e4e8ea96
11 changed files with 817 additions and 600 deletions
|
|
@ -296,8 +296,7 @@ function flow_data_preset.getFormattedDataAndLink(key, value, values)
|
|||
|
||||
-- Get the formatter function
|
||||
local formatter = columns[key]["formatter"]["funct"]
|
||||
local link_formatter =
|
||||
columns[key]["formatter"]["generateLink"]
|
||||
local link_formatter = columns[key]["formatter"]["generateLink"]
|
||||
|
||||
-- See if there is some column from which is dependent,
|
||||
-- e.g. SNMP Interface needs the SNMP IP
|
||||
|
|
@ -306,12 +305,10 @@ function flow_data_preset.getFormattedDataAndLink(key, value, values)
|
|||
|
||||
if (#dependent_values > 1) then
|
||||
-- TODO: Now it's limited to a single column, add multiple columns
|
||||
formatted_value =
|
||||
formatter(dependent_values[1], dependent_values[2])
|
||||
formatted_value = formatter(dependent_values[1], dependent_values[2])
|
||||
|
||||
if link_formatter then
|
||||
link = link_formatter(dependent_values[1],
|
||||
dependent_values[2])
|
||||
link = link_formatter(dependent_values[1], dependent_values[2])
|
||||
end
|
||||
else
|
||||
-- new code
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue