Mercurial > prosody-modules
view mod_statistics_cputotal/mod_statistics_cputotal.lua @ 4626:285efde5e8a5
mod_pubsub_alertmanager: Exclude "ends at" timestamp for unresolved alerts
Wow, does the problem end in year 1? Let me get my time machine!
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Sun, 18 Jul 2021 00:19:50 +0200 |
| 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 } } });
