summaryrefslogtreecommitdiff
path: root/libpod/stats_config.go
diff options
context:
space:
mode:
authorGiuseppe Scrivano <gscrivan@redhat.com>2020-02-11 19:48:23 +0100
committerGiuseppe Scrivano <gscrivan@redhat.com>2020-02-11 22:24:14 +0100
commit6215e1bb218a86c217a66e34f2abd043feca8582 (patch)
tree9212cebe74e4385685ea2d496a73b11418102205 /libpod/stats_config.go
parent4bdfeed5bf9c467c8ab53b392747ec722505b179 (diff)
downloadpodman-6215e1bb218a86c217a66e34f2abd043feca8582.tar.gz
podman-6215e1bb218a86c217a66e34f2abd043feca8582.tar.bz2
podman-6215e1bb218a86c217a66e34f2abd043feca8582.zip
api: fix the CPU stats reported
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
Diffstat (limited to 'libpod/stats_config.go')
-rw-r--r--libpod/stats_config.go28
1 files changed, 15 insertions, 13 deletions
diff --git a/libpod/stats_config.go b/libpod/stats_config.go
index 9c7d97298..91d3d1493 100644
--- a/libpod/stats_config.go
+++ b/libpod/stats_config.go
@@ -2,17 +2,19 @@ package libpod
// ContainerStats contains the statistics information for a running container
type ContainerStats struct {
- ContainerID string
- Name string
- CPU float64
- CPUNano uint64
- SystemNano uint64
- MemUsage uint64
- MemLimit uint64
- MemPerc float64
- NetInput uint64
- NetOutput uint64
- BlockInput uint64
- BlockOutput uint64
- PIDs uint64
+ ContainerID string
+ Name string
+ PerCPU []uint64
+ CPU float64
+ CPUNano uint64
+ CPUSystemNano uint64
+ SystemNano uint64
+ MemUsage uint64
+ MemLimit uint64
+ MemPerc float64
+ NetInput uint64
+ NetOutput uint64
+ BlockInput uint64
+ BlockOutput uint64
+ PIDs uint64
}