Mercurial > prosody-modules
diff mod_statistics_cputotal/mod_statistics_cputotal.lua @ 1386:4557ac5c205d
mod_statistics_cputotal: Make global
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 19 Apr 2014 15:16:19 +0200 |
parents | aa371405db34 |
children |
line wrap: on
line diff
--- a/mod_statistics_cputotal/mod_statistics_cputotal.lua Tue Apr 15 14:22:18 2014 -0400 +++ b/mod_statistics_cputotal/mod_statistics_cputotal.lua Sat Apr 19 15:16:19 2014 +0200 @@ -1,5 +1,7 @@ -- Provides total CPU time, useful for DERIVE +module:set_global(); + module:provides("statistics", { statistics = { cpu_total = { -- milliseconds of CPU time used