Mercurial > prosody-modules
view mod_measure_registration/mod_measure_registration.lua @ 5731:1bdc6b5979ee
mod_audit: Use new module API for period/time ranges
It was added around the same time as the parse_duration function
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sun, 26 Nov 2023 21:51:12 +0100 |
parents | 32d9d155a9b9 |
children |
line wrap: on
line source
local count_registering = module:measure("user_registering", "rate"); local count_registered = module:measure("user_registered", "rate"); module:hook("user-registering", function () count_registering(); end); module:hook("user-registered", function () count_registered(); end);