Remove ContainerStats.PerCPU: CGV1 only

Signed-off-by: Lokesh Mandvekar <lsm5@redhat.com>
This commit is contained in:
Lokesh Mandvekar
2025-11-05 11:22:02 -05:00
parent bb3c8b9ecd
commit 145540fed4
4 changed files with 0 additions and 7 deletions

View File

@@ -26474,10 +26474,6 @@ msgstr ""
msgid "Network Output"
msgstr ""
#: ../../source/markdown/podman-stats.1.md:1
msgid ".PerCPU"
msgstr ""
#: ../../source/markdown/podman-stats.1.md:1
msgid "CPU time consumed by all tasks [1]"
msgstr ""

View File

@@ -133,7 +133,6 @@ type ContainerStats struct {
AvgCPU float64
ContainerID string
Name string
PerCPU []uint64
CPU float64
CPUNano uint64
CPUSystemNano uint64

View File

@@ -69,7 +69,6 @@ func (c *Container) getPlatformContainerStats(stats *define.ContainerStats, prev
stats.CPUNano = cgroupStats.CpuStats.CpuUsage.TotalUsage
stats.CPUSystemNano = cgroupStats.CpuStats.CpuUsage.UsageInKernelmode
stats.SystemNano = now
stats.PerCPU = cgroupStats.CpuStats.CpuUsage.PercpuUsage
return nil
}

View File

@@ -20,7 +20,6 @@ func getPreCPUStats(stats *define.ContainerStats) CPUStats {
return CPUStats{
CPUUsage: container.CPUUsage{
TotalUsage: stats.CPUNano,
PercpuUsage: stats.PerCPU,
UsageInKernelmode: stats.CPUSystemNano,
UsageInUsermode: stats.CPUNano - stats.CPUSystemNano,
},