calc variance

This commit is contained in:
Cloud Wu
2019-04-02 17:28:23 +08:00
committed by 云风
parent 5bf635c75c
commit 64e0c4daff
2 changed files with 46 additions and 14 deletions

View File

@@ -336,8 +336,8 @@ function COMMAND.cmem()
end
function COMMAND.shrtbl()
local n, total, longest, space, slots = memory.ssinfo()
return { n = n, total = total, longest = longest, space = space, slots = slots }
local n, total, longest, space, slots, avg, variance = memory.ssinfo()
return { n = n, total = total, longest = longest, space = space, slots = slots, average = avg, variace = variance }
end
function COMMAND.ping(address)