Software /
code /
prosody
Diff
core/moduleapi.lua @ 7646:6210dfaec84f
moduleapi: 'duration' became 'times'
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Wed, 31 Aug 2016 16:10:16 +0100 |
parent | 7342:79a5db780e8b |
child | 7647:e9d7a409e236 |
child | 7947:24170d74b00b |
line wrap: on
line diff
--- a/core/moduleapi.lua Wed Aug 31 16:10:00 2016 +0100 +++ b/core/moduleapi.lua Wed Aug 31 16:10:16 2016 +0100 @@ -412,7 +412,7 @@ end function api:measure_object_event(events_object, event_name, stat_name) - local m = self:measure(stat_name or event_name, "duration"); + local m = self:measure(stat_name or event_name, "times"); local function handler(handlers, _event_name, _event_data) local finished = m(); local ret = handlers(_event_name, _event_data);