author | Kim Alvefur <zash@zash.se> |
Sun, 07 Jun 2020 00:19:49 +0200 | |
changeset 4043 | 2af0301af734 |
parent 4042 | 02d238799537 |
child 4044 | e17c937a71b3 |
child 4047 | a533abe6ffd0 |
--- a/mod_measure_cpu/mod_measure_cpu.lua Tue Jun 02 20:00:03 2020 +0200 +++ b/mod_measure_cpu/mod_measure_cpu.lua Sun Jun 07 00:19:49 2020 +0200 @@ -6,7 +6,7 @@ local get_clock = os.clock; local measure_cpu_now = measure("amount", "cpu.percent"); -- Current percentage -local measure_cpu_total = measure("counter", "cpu.clock"); +local measure_cpu_total = measure("counter", "cpu.clock", { units = "seconds" }); local last_cpu_wall, last_cpu_clock; module:hook("stats-update", function ()