mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 15:39:33 +00:00
Adds user-created labels to host stats Name column
This commit is contained in:
parent
b38f5f4712
commit
0efb7d100a
1 changed files with 9 additions and 1 deletions
|
|
@ -258,7 +258,15 @@ for _key, _value in pairsByKeys(vals, funct) do
|
|||
|
||||
local column_name = ''
|
||||
if host then
|
||||
column_name = hostinfo2label(host)
|
||||
if host["name"] then
|
||||
column_name = shortenString(host["name"])
|
||||
end
|
||||
|
||||
-- This is the label as set-up by the user
|
||||
local alt_name = getHostAltName(host["ip"])
|
||||
if not isEmptyString(alt_name) and alt_name ~= column_name then
|
||||
column_name = string.format("%s [%s]", column_name, shortenString(alt_name))
|
||||
end
|
||||
end
|
||||
|
||||
if value["has_blocking_quota"] or value["has_blocking_shaper"] then
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue