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:
parent
f10b1ff165
commit
401c48015c
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue