Mercurial > prosody-modules
diff mod_measure_memory/mod_measure_memory.lua @ 2436:a01a3fb96302
mod_measure_memory: Module is global, no need for a global hook
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Fri, 06 Jan 2017 17:07:01 +0100 |
parents | 4d38b8c03dfe |
children | 07d6077d2db7 |
line wrap: on
line diff
--- a/mod_measure_memory/mod_measure_memory.lua Sun Jan 08 06:26:21 2017 +0100 +++ b/mod_measure_memory/mod_measure_memory.lua Fri Jan 06 17:07:01 2017 +0100 @@ -15,7 +15,7 @@ end); if have_pposix and pposix.meminfo then - module:hook_global("stats-update", function () + module:hook("stats-update", function () local m = measures; for k, v in pairs(pposix.meminfo()) do m[k](v);