From 9510238ff9692a2145be8dc2c712db208cdfd02b Mon Sep 17 00:00:00 2001 From: Paul Holzinger Date: Tue, 22 Mar 2022 17:37:23 +0100 Subject: 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 --- libpod/define/containerstate.go | 1 - 1 file changed, 1 deletion(-) (limited to 'libpod/define') 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 -- cgit v1.2.3-54-g00ecf