mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 07:29:32 +00:00
Add missing max devices check
This commit is contained in:
parent
acdab024da
commit
4d322c3c09
2 changed files with 9 additions and 8 deletions
|
|
@ -601,14 +601,6 @@ end
|
|||
|
||||
-- ##############################################
|
||||
|
||||
function table.len(T)
|
||||
local count = 0
|
||||
for _ in pairs(T) do count = count + 1 end
|
||||
return count
|
||||
end
|
||||
|
||||
-- ##############################################
|
||||
|
||||
function noHtml(s)
|
||||
if s == nil then return nil end
|
||||
|
||||
|
|
@ -1786,6 +1778,7 @@ function get_version_update_msg(info, latest_version)
|
|||
end
|
||||
end
|
||||
|
||||
-- NOTE: on index based tables using #table is much more performant
|
||||
function table.len(table)
|
||||
local count = 0
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue