view mod_statistics_cputotal/mod_statistics_cputotal.lua @ 1447:e96ac4291b36

mod_statsd: Clean off colons (:)
author daurnimator <quae@daurnimator.com>
date Mon, 23 Jun 2014 16:05:33 -0400
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
		}
	}
});