Re: [pve-devel] [PATCH container] fix #4765: lxc: report cpu usage correctly

2023-06-24 Thread Thomas Lamprecht
Am 23/06/2023 um 13:54 schrieb Fiona Ebner: > IMHO, the average of the CPU usage across the whole uptime is not what > most people would expect this value to be. Yeah, this is really not that useful in most cases. > Maybe we should just remove the line from the output like in qm (technically > a

Re: [pve-devel] [PATCH container] fix #4765: lxc: report cpu usage correctly

2023-06-23 Thread Fiona Ebner
Am 20.06.23 um 17:46 schrieb Maximiliano Sandoval: > When running `pct status VMID` the variable Issue is only present with --verbose. > $last_proc_vmid_stat->{$vmid} is not set and pct reports no cpu usage. > > We address this by computing the used cpu time over the total uptime of > the

[pve-devel] [PATCH container] fix #4765: lxc: report cpu usage correctly

2023-06-20 Thread Maximiliano Sandoval
When running `pct status VMID` the variable $last_proc_vmid_stat->{$vmid} is not set and pct reports no cpu usage. We address this by computing the used cpu time over the total uptime of the container. Signed-off-by: Maximiliano Sandoval --- src/PVE/LXC.pm | 5 - 1 file changed, 4