mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-05 10:41:34 +00:00
Fix interface name
This commit is contained in:
parent
d5dbd9a0cd
commit
8a486aa6e5
1 changed files with 4 additions and 1 deletions
|
|
@ -76,6 +76,9 @@ for key, info in pairs(active_monitoring_hosts) do
|
|||
info.label = ip2label(ip_address)
|
||||
end
|
||||
|
||||
local custom_name = getHumanReadableInterfaceName(info.ifname)
|
||||
if isEmptyString(custom_name) then custom_name = nil end
|
||||
|
||||
res[#res + 1] = {
|
||||
key = key,
|
||||
ip_address = ip_address,
|
||||
|
|
@ -94,7 +97,7 @@ for key, info in pairs(active_monitoring_hosts) do
|
|||
metadata = {
|
||||
is_infrastructure_instance = info.is_infrastructure,
|
||||
is_alerted = is_alerted,
|
||||
interface_name = getHumanReadableInterfaceName(info.ifname),
|
||||
interface_name = custom_name or info.ifname,
|
||||
interface_id = getInterfaceId(info.ifname),
|
||||
granularity = info.granularity,
|
||||
availability = availability or "",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue