mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 07:29:32 +00:00
Fix missing interface name in page title
This commit is contained in:
parent
8e4bfd8f5c
commit
27b39337e5
4 changed files with 10 additions and 4 deletions
|
|
@ -60,6 +60,7 @@ end
|
|||
|
||||
-- ##############################################
|
||||
|
||||
-- See also getHumanReadableInterfaceName
|
||||
function getInterfaceName(interface_id, windows_skip_description)
|
||||
if(interface_id == getSystemInterfaceId()) then
|
||||
return(getSystemInterfaceName())
|
||||
|
|
@ -2157,6 +2158,11 @@ function shortenCollapse(s, max_len)
|
|||
end
|
||||
|
||||
function getHumanReadableInterfaceName(interface_name)
|
||||
if tonumber(interface_name) ~= nil then
|
||||
-- convert ID to name
|
||||
interface_name = getInterfaceName(interface_name)
|
||||
end
|
||||
|
||||
local key = 'ntopng.prefs.'..interface_name..'.name'
|
||||
local custom_name = ntop.getCache(key)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue