Add monitor lua module
This commit is contained in:
parent
764bcd5a1b
commit
966e9f5e25
6 changed files with 266 additions and 0 deletions
|
|
@ -130,4 +130,13 @@ local function deepcopy(orig)
|
|||
end
|
||||
_M.deepcopy = deepcopy
|
||||
|
||||
local function tablelength(T)
|
||||
local count = 0
|
||||
for _ in pairs(T) do
|
||||
count = count + 1
|
||||
end
|
||||
return count
|
||||
end
|
||||
_M.tablelength = tablelength
|
||||
|
||||
return _M
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue