Mercurial > prosody-modules
view mod_statistics_cputotal/mod_statistics_cputotal.lua @ 1505:ba71d0ad5564
mod_message_logging/mod_message_logging.lua: Fix missing 'or'
author | daurnimator <quae@daurnimator.com> |
---|---|
date | Tue, 16 Sep 2014 17:32:45 -0400 |
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 } } });