mirror of
https://github.com/containers/podman.git
synced 2025-11-29 09:37:38 +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"
|
msgid "Network Output"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../../source/markdown/podman-stats.1.md:1
|
|
||||||
msgid ".PerCPU"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: ../../source/markdown/podman-stats.1.md:1
|
#: ../../source/markdown/podman-stats.1.md:1
|
||||||
msgid "CPU time consumed by all tasks [1]"
|
msgid "CPU time consumed by all tasks [1]"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|||||||
@@ -133,7 +133,6 @@ type ContainerStats struct {
|
|||||||
AvgCPU float64
|
AvgCPU float64
|
||||||
ContainerID string
|
ContainerID string
|
||||||
Name string
|
Name string
|
||||||
PerCPU []uint64
|
|
||||||
CPU float64
|
CPU float64
|
||||||
CPUNano uint64
|
CPUNano uint64
|
||||||
CPUSystemNano uint64
|
CPUSystemNano uint64
|
||||||
|
|||||||
@@ -69,7 +69,6 @@ func (c *Container) getPlatformContainerStats(stats *define.ContainerStats, prev
|
|||||||
stats.CPUNano = cgroupStats.CpuStats.CpuUsage.TotalUsage
|
stats.CPUNano = cgroupStats.CpuStats.CpuUsage.TotalUsage
|
||||||
stats.CPUSystemNano = cgroupStats.CpuStats.CpuUsage.UsageInKernelmode
|
stats.CPUSystemNano = cgroupStats.CpuStats.CpuUsage.UsageInKernelmode
|
||||||
stats.SystemNano = now
|
stats.SystemNano = now
|
||||||
stats.PerCPU = cgroupStats.CpuStats.CpuUsage.PercpuUsage
|
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -20,7 +20,6 @@ func getPreCPUStats(stats *define.ContainerStats) CPUStats {
|
|||||||
return CPUStats{
|
return CPUStats{
|
||||||
CPUUsage: container.CPUUsage{
|
CPUUsage: container.CPUUsage{
|
||||||
TotalUsage: stats.CPUNano,
|
TotalUsage: stats.CPUNano,
|
||||||
PercpuUsage: stats.PerCPU,
|
|
||||||
UsageInKernelmode: stats.CPUSystemNano,
|
UsageInKernelmode: stats.CPUSystemNano,
|
||||||
UsageInUsermode: stats.CPUNano - stats.CPUSystemNano,
|
UsageInUsermode: stats.CPUNano - stats.CPUSystemNano,
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user