mirror of
https://github.com/containers/podman.git
synced 2025-11-28 17:18:58 +08:00
Remove ContainerStats.PerCPU: CGV1 only
Signed-off-by: Lokesh Mandvekar <lsm5@redhat.com>
This commit is contained in:
@@ -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 ""
|
||||
|
||||
@@ -133,7 +133,6 @@ type ContainerStats struct {
|
||||
AvgCPU float64
|
||||
ContainerID string
|
||||
Name string
|
||||
PerCPU []uint64
|
||||
CPU float64
|
||||
CPUNano uint64
|
||||
CPUSystemNano uint64
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
@@ -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,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user