diff options
author | Kim Alvefur <zash@zash.se> | 2019-01-04 07:00:44 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2019-01-04 07:00:44 +0100 |
commit | 401c48015c334a4664f369824f61f0c1a30d536b (patch) | |
tree | 3656c12e466ebdf37cdabe9b451c9e064a2b72c3 /core | |
parent | f10b1ff16550191f7b2be04073bec6fccfbf741b (diff) | |
download | prosody-401c48015c334a4664f369824f61f0c1a30d536b.tar.gz prosody-401c48015c334a4664f369824f61f0c1a30d536b.zip |
core.statsmanager: Allow passing a config table trough measure
Diffstat (limited to 'core')
-rw-r--r-- | core/statsmanager.lua | 4 |
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 |