mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 23:49:33 +00:00
Fixes as page not correctly working on first opening and added ASN links (#9506)
This commit is contained in:
parent
52fe9f20f2
commit
2a22b2e7dd
4 changed files with 28 additions and 38 deletions
|
|
@ -225,11 +225,11 @@ function flow_data.formatStats(stats_to_format)
|
|||
local formatted_element = {}
|
||||
for key, value in pairs(values or {}) do
|
||||
-- Format the data
|
||||
local formatted_data = flow_data_preset.getFormattedDataAndLink(key,
|
||||
local formatted_data, url_link = flow_data_preset.getFormattedDataAndLink(key,
|
||||
value,
|
||||
values)
|
||||
if (formatted_data ~= value) or (type(formatted_data) == "string") then
|
||||
formatted_element[key] = {id = value, name = formatted_data}
|
||||
formatted_element[key] = {id = value, name = formatted_data, url = url_link}
|
||||
else
|
||||
formatted_element[key] = value
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue