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
commitbc56346dde1199160f7c6591a9477cf31fd8c675 (patch)
tree3656c12e466ebdf37cdabe9b451c9e064a2b72c3 /core/statsmanager.lua
parent7a662dd66d0210a3a4290f6c0d2be3c8130c3495 (diff)
downloadprosody-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.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