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 | bc56346dde1199160f7c6591a9477cf31fd8c675 (patch) | |
tree | 3656c12e466ebdf37cdabe9b451c9e064a2b72c3 /core/statsmanager.lua | |
parent | 7a662dd66d0210a3a4290f6c0d2be3c8130c3495 (diff) | |
download | prosody-bc56346dde1199160f7c6591a9477cf31fd8c675.tar.gz prosody-bc56346dde1199160f7c6591a9477cf31fd8c675.zip |
core.statsmanager: Allow passing a config table trough measure
Diffstat (limited to 'core/statsmanager.lua')
-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 |