summaryrefslogtreecommitdiff
path: root/pkg
diff options
context:
space:
mode:
authorValentin Rothberg <rothberg@redhat.com>2020-01-15 11:11:30 +0100
committerValentin Rothberg <rothberg@redhat.com>2020-01-15 11:11:30 +0100
commita1ff93bdfedc30d707a1230d5d1cb8d987a7360f (patch)
tree6fd7cffa9b9b0c52deb70fe3e79d556129f0af7e /pkg
parent12aa9caf97bdcb6dc71a8c94c4875f9e0e87022a (diff)
downloadpodman-a1ff93bdfedc30d707a1230d5d1cb8d987a7360f.tar.gz
podman-a1ff93bdfedc30d707a1230d5d1cb8d987a7360f.tar.bz2
podman-a1ff93bdfedc30d707a1230d5d1cb8d987a7360f.zip
v2: stats: remove windows-specific fields
`NumProcs` and `StorageStats` are windows specific and are not popoulated on Linux. Hence, we can safely remove them. Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
Diffstat (limited to 'pkg')
-rw-r--r--pkg/api/handlers/generic/containers_stats.go7
1 files changed, 0 insertions, 7 deletions
diff --git a/pkg/api/handlers/generic/containers_stats.go b/pkg/api/handlers/generic/containers_stats.go
index 0c4efc1df..538fc6f21 100644
--- a/pkg/api/handlers/generic/containers_stats.go
+++ b/pkg/api/handlers/generic/containers_stats.go
@@ -127,13 +127,6 @@ func StatsContainer(w http.ResponseWriter, r *http.Request) {
IoTimeRecursive: nil,
SectorsRecursive: nil,
},
- NumProcs: 0,
- StorageStats: docker.StorageStats{
- ReadCountNormalized: 0,
- ReadSizeBytes: 0,
- WriteCountNormalized: 0,
- WriteSizeBytes: 0,
- },
CPUStats: docker.CPUStats{
CPUUsage: docker.CPUUsage{
TotalUsage: cgroupStat.CPU.Usage.Total,