File

mod_statistics_cputotal/mod_statistics_cputotal.lua @ 2851:4b10636bd743

"Export" get_user from mod_auth_ldap
author Jonas Wielicki <jonas@wielicki.name>
date Tue, 05 Dec 2017 20:37:07 +0100
parent 1386:4557ac5c205d
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
		}
	}
});