comparison mod_measure_registration/mod_measure_registration.lua @ 3951:32d9d155a9b9

mod_measure_registration: new module
author Maxime “pep” Buquet <pep@bouah.net>
date Sat, 21 Mar 2020 15:03:47 +0100
parents
children
comparison
equal deleted inserted replaced
3950:e9e41e75c5a0 3951:32d9d155a9b9
1 local count_registering = module:measure("user_registering", "rate");
2 local count_registered = module:measure("user_registered", "rate");
3
4 module:hook("user-registering", function ()
5 count_registering();
6 end);
7
8 module:hook("user-registered", function ()
9 count_registered();
10 end);