# HG changeset patch # User Kim Alvefur # Date 1591481989 -7200 # Node ID 2af0301af734bd58bd34d39da1a109eb9b163d96 # Parent 02d238799537aa025ec28f033d791643c87eff39 mod_measure_cpu: Specify units of total CPU time as seconds diff -r 02d238799537 -r 2af0301af734 mod_measure_cpu/mod_measure_cpu.lua --- 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 ()