Mercurial > prosody-modules
view mod_statistics_cputotal/mod_statistics_cputotal.lua @ 5273:40be37652d70
mod_http_oauth2: Fix traceback on missing 'scope' parameter
parse_scopes() takes a string and it is not optional
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Fri, 24 Mar 2023 00:07:58 +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 } } });