9581020...
by
OpenShift Merge Robot <email address hidden>
Merge pull request #18710 from TomSweeneyRedHat/dev/tsweeney/pscpufix_v3.0.1-rhel
[v3.0.1-rhel] podman stats: calc CPU percentage correctly
ca3d490...
by
Paul Holzinger <email address hidden>
[v3.0.1-rhel] podman stats: calc CPU percentage correctly
When you run podman stats, the first interval always shows the wrong cpu
usage. To calculate cpu percentage we get the cpu time from the cgroup
and compare this against the system time between two stats. Since the
first time we do not have a previous stats an empty struct is used
instead. Thus we do not use the actual running time of the container but
the current unix timestamp (time since Jan 1 1970).
To fix this we make sure that the previous stats time is set to the
container start time, when it is empty.
[NO NEW TESTS NEEDED] No idea how I could create a test which would have
a predictable cpu usage.
Cirrus: Add CI self-destruct condition on EOL date
Fixes: #18261
This branch will never receive any security-backports when the
associated RHEL release reaches EOL. Add a condition to force CI to
break with a helpful message, after this RHEL EOL date.
Signed-off-by: Chris Evich <email address hidden>
c54e5d9...
by
"openshift-ci[bot]" <75433959+openshift-ci[bot]@users.noreply.github.com>
Merge pull request #18260 from cevich/v3.0.1-rhel_ci_duct_tape
[v3.0.1-rhel] Fix attempt to use incompatible go tools