aboutsummaryrefslogtreecommitdiffstats
path: root/core/statsmanager.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2019-01-04 07:00:44 +0100
committerKim Alvefur <zash@zash.se>2019-01-04 07:00:44 +0100
commit401c48015c334a4664f369824f61f0c1a30d536b (patch)
tree3656c12e466ebdf37cdabe9b451c9e064a2b72c3 /core/statsmanager.lua
parentf10b1ff16550191f7b2be04073bec6fccfbf741b (diff)
downloadprosody-401c48015c334a4664f369824f61f0c1a30d536b.tar.gz
prosody-401c48015c334a4664f369824f61f0c1a30d536b.zip
core.statsmanager: Allow passing a config table trough measure
Diffstat (limited to 'core/statsmanager.lua')
-rw-r--r--core/statsmanager.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/statsmanager.lua b/core/statsmanager.lua
index d3f1d4f5..2297c959 100644
--- a/core/statsmanager.lua
+++ b/core/statsmanager.lua
@@ -60,9 +60,9 @@ local changed_stats = {};
local stats_extra = {};
if stats then
- function measure(type, name)
+ function measure(type, name, conf)
local f = assert(stats[type], "unknown stat type: "..type);
- return f(name);
+ return f(name, conf);
end
if stats_interval then