Skip to content

Commit cfc01ca

Browse files
committed
Remove ContainerStats.PerCPU: CGV1 only
Signed-off-by: Lokesh Mandvekar <lsm5@redhat.com>
1 parent 77db8c5 commit cfc01ca

File tree

4 files changed

+0
-7
lines changed

4 files changed

+0
-7
lines changed

docs/source/locale/ja/LC_MESSAGES/markdown.po

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26474,10 +26474,6 @@ msgstr ""
2647426474
msgid "Network Output"
2647526475
msgstr ""
2647626476

26477-
#: ../../source/markdown/podman-stats.1.md:1
26478-
msgid ".PerCPU"
26479-
msgstr ""
26480-
2648126477
#: ../../source/markdown/podman-stats.1.md:1
2648226478
msgid "CPU time consumed by all tasks [1]"
2648326479
msgstr ""

libpod/define/containerstate.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,6 @@ type ContainerStats struct {
133133
AvgCPU float64
134134
ContainerID string
135135
Name string
136-
PerCPU []uint64
137136
CPU float64
138137
CPUNano uint64
139138
CPUSystemNano uint64

libpod/stats_linux.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@ func (c *Container) getPlatformContainerStats(stats *define.ContainerStats, prev
6969
stats.CPUNano = cgroupStats.CpuStats.CpuUsage.TotalUsage
7070
stats.CPUSystemNano = cgroupStats.CpuStats.CpuUsage.UsageInKernelmode
7171
stats.SystemNano = now
72-
stats.PerCPU = cgroupStats.CpuStats.CpuUsage.PercpuUsage
7372

7473
return nil
7574
}

pkg/api/handlers/compat/containers_stats_linux.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ func getPreCPUStats(stats *define.ContainerStats) CPUStats {
2020
return CPUStats{
2121
CPUUsage: container.CPUUsage{
2222
TotalUsage: stats.CPUNano,
23-
PercpuUsage: stats.PerCPU,
2423
UsageInKernelmode: stats.CPUSystemNano,
2524
UsageInUsermode: stats.CPUNano - stats.CPUSystemNano,
2625
},

0 commit comments

Comments
 (0)