Fixes names not displayed (#8994)

This commit is contained in:
Matteo Biscosi 2025-02-27 13:42:52 +01:00
parent 65ada0ab42
commit c9a95ded82

View file

@ -69,9 +69,11 @@ for key, value in pairsByKeys(_hosts_stats, rev) do
if(key < threshold) then
break
end
local host_info = hosts_stats[value];
local host_label = hostinfo2label(host_info, true, false, true)
res[#res+1] = {
label = value,
label = host_label,
value = key,
url = ntop.getHttpPrefix().."/lua/host_details.lua?"..hostinfo2url(value)
}