Mercurial > prosody-modules
view mod_statistics_cputotal/mod_statistics_cputotal.lua @ 1694:25412e94fb3e
mod_auto_accept_subscriptions: Fix passing nil in log message
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Tue, 05 May 2015 13:58:37 +0100 |
parents | 4557ac5c205d |
children |
line wrap: on
line source
-- Provides total CPU time, useful for DERIVE module:set_global(); module:provides("statistics", { statistics = { cpu_total = { -- milliseconds of CPU time used get = function() return os.clock() * 1000; end } } });