fixed process count, added lazy table length function, removed orgs now decrement org counter, orgs loaded message should now be accurate
This commit is contained in:
1 parent
8d3428653c
commit
52334f409e
4 files changed
+13
-2
No files matched your search
@@ -32,3 +32,13 @@ function modpol.util.num_pairs(t)
|
||||
end
|
||||
return i
|
||||
end
|
||||
|
||||
function modpol.util.lazy_table_length(tbl, lazy_val)
|
||||
local count = 0
|
||||
for k, v in ipairs(tbl) do
|
||||
if v ~= lazy_val then
|
||||
count = count + 1
|
||||
end
|
||||
end
|
||||
return count
|
||||
end
|
||||
Reference in new issue
Block a user