aboutsummaryrefslogtreecommitdiff
path: root/libpod/define/containerstate.go
diff options
context:
space:
mode:
authorPaul Holzinger <pholzing@redhat.com>2022-03-22 17:37:23 +0100
committerMatthew Heon <mheon@redhat.com>2022-03-30 15:36:05 -0400
commit9510238ff9692a2145be8dc2c712db208cdfd02b (patch)
treeb7abba7d8fee07b455b706f6bf9c36c1777e9382 /libpod/define/containerstate.go
parent8bc2f6cd8486c893c292da3aa64965d10cd8ffe8 (diff)
downloadpodman-9510238ff9692a2145be8dc2c712db208cdfd02b.tar.gz
podman-9510238ff9692a2145be8dc2c712db208cdfd02b.tar.bz2
podman-9510238ff9692a2145be8dc2c712db208cdfd02b.zip
podman stats: improve cpu average calc
We can just calculate the cpu percent for the time the container is running. There is no need to use datapoints. Signed-off-by: Paul Holzinger <pholzing@redhat.com>
Diffstat (limited to 'libpod/define/containerstate.go')
-rw-r--r--libpod/define/containerstate.go1
1 files changed, 0 insertions, 1 deletions
diff --git a/libpod/define/containerstate.go b/libpod/define/containerstate.go
index 23ba1f451..9ad3aec08 100644
--- a/libpod/define/containerstate.go
+++ b/libpod/define/containerstate.go
@@ -138,7 +138,6 @@ type ContainerStats struct {
CPU float64
CPUNano uint64
CPUSystemNano uint64
- DataPoints int64
SystemNano uint64
MemUsage uint64
MemLimit uint64