Add monitor lua module

This commit is contained in:
Francisco Mejia 2018-06-13 22:54:09 -04:00
parent 764bcd5a1b
commit 966e9f5e25
6 changed files with 266 additions and 0 deletions

View file

@ -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