view mod_statistics_cputotal/mod_statistics_cputotal.lua @ 4228:3eb595cf847f

mod_http_oauth2: Accept empty scope Some tool I used couldn't not send a scope, preventing it from working with mod_http_oauth2. This change should fix that.
author Kim Alvefur <zash@zash.se>
date Fri, 23 Oct 2020 22:23:20 +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
		}
	}
});