mod_statistics_cputotal/mod_statistics_cputotal.lua
author Matthew Wild <mwild1@gmail.com>
Tue, 15 Sep 2020 11:49:55 +0100
changeset 4131 e9e10ec1b91c
parent 1386 4557ac5c205d
permissions -rw-r--r--
mod_firewall: Add checkcerts option for HTTP lists, cert verification disabled when SNI unsupported This provides a balance between security and usability. SNI is supported in Prosody trunk and in Prosody 0.11 from commit 30d3f6f85eb8 (scheduled for 0.11.7).

-- 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
		}
	}
});