Mercurial > prosody-modules
view mod_statistics_cputotal/mod_statistics_cputotal.lua @ 2301:d7c014f91189
mod_statistics: Add a read timeout handler that keeps the connection alive (fixes #742)
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Mon, 19 Sep 2016 19:36:19 +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 } } });