mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 15:39:33 +00:00
Initial work towards OS discovery
This commit is contained in:
parent
3275f236d5
commit
fdb7a8ab41
11 changed files with 131 additions and 18 deletions
|
|
@ -1376,6 +1376,8 @@ end
|
|||
|
||||
-- #################################
|
||||
|
||||
-- #################################
|
||||
|
||||
-- Aggregates items below some edge
|
||||
-- edge: minimum percentage value to create collision
|
||||
-- min_col: minimum collision groups to aggregate
|
||||
|
|
@ -1468,6 +1470,20 @@ function getOSIcon(name)
|
|||
return(icon)
|
||||
end
|
||||
|
||||
-- #################################
|
||||
|
||||
function getOperatingSystemIcon(id)
|
||||
if(id == 1) then return('<i class=\'fa fa-linux fa-lg\'></i>')
|
||||
elseif(id == 2) then return('<i class=\'fa fa-windows fa-lg\'></i>')
|
||||
elseif(id == 3) then return('<i class=\'fa fa-apple fa-lg\'></i>')
|
||||
elseif(id == 4) then return('<i class=\'fa fa-apple fa-lg\'></i>')
|
||||
elseif(id == 5) then return('<i class=\'fa fa-android fa-lg\'></i>')
|
||||
else return("")
|
||||
end
|
||||
end
|
||||
|
||||
-- #################################
|
||||
|
||||
function getApplicationLabel(name)
|
||||
icon = ""
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue