Mercurial > prosody-modules
diff mod_measure_malloc/mod_measure_malloc.lua @ 4761:ea1ecbc1d04d
Merge commit
| author | tmolitor <thilo@eightysoft.de> |
|---|---|
| date | Sun, 07 Nov 2021 14:41:43 +0100 |
| parents | b9af1ccac98b |
| children |
line wrap: on
line diff
--- a/mod_measure_malloc/mod_measure_malloc.lua Sun Nov 07 14:40:41 2021 +0100 +++ b/mod_measure_malloc/mod_measure_malloc.lua Sun Nov 07 14:41:43 2021 +0100 @@ -25,7 +25,7 @@ ):with_labels(); module:hook("stats-update", function () - meminfo = pposix.meminfo(); + local meminfo = pposix.meminfo(); if meminfo.allocated then allocated:with_labels("sbrk"):set(meminfo.allocated); end
