1
0
Fork 0
mirror of https://github.com/bjc/prosody.git synced 2025-04-06 06:37:37 +03:00

core.statsmanager: Allow passing a config table trough measure

This commit is contained in:
Kim Alvefur 2019-01-04 07:00:44 +01:00
parent f10b1ff165
commit 401c48015c

View file

@ -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