Software /
code /
prosody
Changeset
6653:8241eac507c3
moduleapi: module:measure_event(), module:measure_global_event(): Fix copy/paste error
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Wed, 06 May 2015 19:00:05 +0100 |
parents | 6652:06116b2789f0 |
children | 6654:22a7ee3379bc |
files | core/moduleapi.lua |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/core/moduleapi.lua Wed May 06 18:58:29 2015 +0100 +++ b/core/moduleapi.lua Wed May 06 19:00:05 2015 +0100 @@ -408,11 +408,11 @@ end function api:measure_event(event_name, stat_name) - return self:hook_object_event((hosts[self.host] or prosody).events.wrappers, event_name, handler); + return self:measure_object_event((hosts[self.host] or prosody).events.wrappers, event_name, stat_name); end function api:measure_global_event(event_name, stat_name) - return self:hook_object_event(prosody.events.wrappers, event_name, handler); + return self:measure_object_event(prosody.events.wrappers, event_name, stat_name); end function api.init(mm)