mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-24 20:23:06 +00:00
fix for lua 5.3 (PR #232)
This commit is contained in:
@@ -41,7 +41,7 @@ function command.MEM()
|
|||||||
local list = {}
|
local list = {}
|
||||||
for k,v in pairs(services) do
|
for k,v in pairs(services) do
|
||||||
local kb, bytes = skynet.call(k,"debug","MEM")
|
local kb, bytes = skynet.call(k,"debug","MEM")
|
||||||
list[skynet.address(k)] = string.format("%d Kb (%s)",kb,v)
|
list[skynet.address(k)] = string.format("%.2f Kb (%s)",kb,v)
|
||||||
end
|
end
|
||||||
return list
|
return list
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user