mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-22 02:53:09 +00:00
collectgarbage count change to lua 5.3
This commit is contained in:
@@ -14,8 +14,8 @@ local function init(skynet, export)
|
||||
dbgcmd = {}
|
||||
|
||||
function dbgcmd.MEM()
|
||||
local kb, bytes = collectgarbage "count"
|
||||
skynet.ret(skynet.pack(kb,bytes))
|
||||
local kb = collectgarbage "count"
|
||||
skynet.ret(skynet.pack(kb))
|
||||
end
|
||||
|
||||
function dbgcmd.GC()
|
||||
|
||||
@@ -45,7 +45,7 @@ end
|
||||
function command.MEM()
|
||||
local list = {}
|
||||
for k,v in pairs(services) do
|
||||
local ok, kb, bytes = pcall(skynet.call,k,"debug","MEM")
|
||||
local ok, kb = pcall(skynet.call,k,"debug","MEM")
|
||||
if not ok then
|
||||
list[skynet.address(k)] = string.format("ERROR (%s)",v)
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user