Enlarged top talkers host label

This commit is contained in:
Luca Deri 2023-01-14 09:57:31 +01:00
parent 7668eaec7e
commit 4c2eba0678
2 changed files with 7 additions and 6 deletions

View file

@ -259,7 +259,8 @@ function top_talkers_utils.enrichRecordInformation(class_key, rec, show_vlan)
url = ntop.getHttpPrefix()..'/lua/host_details.lua?always_show_hist=true&host='
-- Use the host alias as label, if set
local alt_name = ip2label(address)
local alt_name = ip2label(address, 0, 100)
if not isEmptyString(alt_name) and (alt_name ~= address) then
label = alt_name
else