aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2016-08-31 16:10:16 +0100
committerMatthew Wild <mwild1@gmail.com>2016-08-31 16:10:16 +0100
commite2dbea53b4aa078633e6270da25a633741d4ae23 (patch)
treec1dbf6645ed1fb3c4b3c0c0adfcd4309c0a8b609 /core
parent48e72a1d7ba60029163e904148300f1ed3a79d4c (diff)
downloadprosody-e2dbea53b4aa078633e6270da25a633741d4ae23.tar.gz
prosody-e2dbea53b4aa078633e6270da25a633741d4ae23.zip
moduleapi: 'duration' became 'times'
Diffstat (limited to 'core')
-rw-r--r--core/moduleapi.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/moduleapi.lua b/core/moduleapi.lua
index 21b2216c..ee1f3e60 100644
--- a/core/moduleapi.lua
+++ b/core/moduleapi.lua
@@ -412,7 +412,7 @@ function api:measure(name, stat_type)
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);