Mercurial > prosody-modules
changeset 4040:e17c937a71b3
mod_measure_memory: Report that stats are in units of bytes
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Wed, 10 Jun 2020 12:12:47 +0200 |
parents | 2af0301af734 |
children | cb5ea9d25cb2 |
files | mod_measure_memory/mod_measure_memory.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mod_measure_memory/mod_measure_memory.lua Sun Jun 07 00:19:49 2020 +0200 +++ b/mod_measure_memory/mod_measure_memory.lua Wed Jun 10 12:12:47 2020 +0200 @@ -5,7 +5,7 @@ local measures = {}; setmetatable(measures, { __index = function (t, k) - local m = measure("amount", "memory."..k); t[k] = m; return m; + local m = measure("amount", "memory."..k, { units = "bytes" }); t[k] = m; return m; end });