Fix for system interface name

This commit is contained in:
emanuele-f 2020-03-24 12:17:35 +01:00
parent 2ec3e4df85
commit e59a787938
2 changed files with 5 additions and 3 deletions

View file

@ -2006,7 +2006,9 @@ function shortenCollapse(s, max_len)
end
function getHumanReadableInterfaceName(interface_name)
if tonumber(interface_name) ~= nil then
if(interface_name == "__system__") then
return(i18n("system"))
elseif tonumber(interface_name) ~= nil then
-- convert ID to name
interface_name = getInterfaceName(interface_name)
end