view mod_statistics_cputotal/mod_statistics_cputotal.lua @ 1768:163967467308

mod_muc_limits: Update to work with both the new and the old MUC API
author Kim Alvefur <zash@zash.se>
date Thu, 18 Jun 2015 19:15:55 +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
		}
	}
});