Software /
code /
prosody-modules
Diff
mod_measure_memory/mod_measure_memory.lua @ 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 |
parent | 3365:a5a5f85d7ca1 |
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 });