mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-30 16:09:32 +00:00
Implemented discover.getOsId
This commit is contained in:
parent
15ae875abc
commit
2e00f9fe50
1 changed files with 12 additions and 0 deletions
|
|
@ -63,6 +63,18 @@ end
|
|||
|
||||
-- #################################
|
||||
|
||||
function discover.getOsId(name)
|
||||
for i=0,table.len(discover.osinfo)-1 do
|
||||
if(discover.osinfo[i][1] == name) then
|
||||
return i
|
||||
end
|
||||
end
|
||||
|
||||
return 0
|
||||
end
|
||||
|
||||
-- #################################
|
||||
|
||||
function discover.getOsAndIcon(id)
|
||||
local name = discover.getOsName(id)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue