mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-09-24 04:07:16 +00:00
07a0d84464
collectCPUUsage took a blocking 1-second spot sample once per report interval, which overstates CPU on mostly-idle guests (reported on a 2-vCPU aarch64 KVM guest) and delayed every Collect() by a second. Track the previous cumulative cpu.Times sample and report busy/total across the elapsed interval instead, falling back to the spot sample only for the first collection and counter resets (reboot, migration). CPUUsagePercent keeps its meaning in the report schema. Contract-Neutral: hostmetrics sampling behavior change with no subsystem contract surface delta Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>