Mercurial > prosody-modules
view mod_statistics_cputotal/mod_statistics_cputotal.lua @ 4512:b88f05c878ac
mod_firewall: Add basic LIST backend for receiving items from PubSub
Relies on mod_pubsub_subscription
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sun, 14 Mar 2021 23:31:32 +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 } } });