mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-01 16:30:10 +00:00
Fix for active monitoring pool names
This commit is contained in:
parent
efc3bd3775
commit
a35a4f86fd
1 changed files with 8 additions and 1 deletions
|
|
@ -32,7 +32,14 @@ end
|
|||
|
||||
-- @brief Given a member key, returns a table of member details such as member name.
|
||||
function active_monitoring_pools:get_member_details(member)
|
||||
return {name = member}
|
||||
local name = member
|
||||
local am_host = am_utils.key2host(member)
|
||||
|
||||
if am_host and am_host["label"] then
|
||||
name = am_host["label"]
|
||||
end
|
||||
|
||||
return {name = name}
|
||||
end
|
||||
|
||||
-- ##############################################
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue