Mercurial > prosody-modules
view mod_statistics_cputotal/mod_statistics_cputotal.lua @ 5247:dc27b997e969
mod_http_oauth2: Invoke mod_http_errors to render error on invalid redirect
Turns out returning a table like that produces a blank page. Kinda
boring and not very helpful.
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sun, 12 Mar 2023 17:56:23 +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 } } });