mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 07:29:32 +00:00
Fixed application label
This commit is contained in:
parent
5685a9d3e0
commit
0813470eb7
2 changed files with 7 additions and 3 deletions
|
|
@ -1531,13 +1531,17 @@ end
|
|||
|
||||
-- #################################
|
||||
|
||||
function getApplicationLabel(name)
|
||||
function getApplicationLabel(name, maxlen)
|
||||
local icon = getApplicationIcon(name)
|
||||
|
||||
if(maxlen == nil) then
|
||||
maxlen = 12
|
||||
end
|
||||
|
||||
-- Do not convert to upper case, keep the nDPI case
|
||||
--name = name:gsub("^%l", string.upper)
|
||||
|
||||
return(icon.." "..shortenString(name, 12))
|
||||
return(icon.." "..shortenString(name, maxlen))
|
||||
end
|
||||
|
||||
-- #################################
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue