aboutsummaryrefslogtreecommitdiff
path: root/libpod/stats.go
diff options
context:
space:
mode:
authorValentin Rothberg <rothberg@redhat.com>2020-11-17 16:46:11 +0100
committerValentin Rothberg <rothberg@redhat.com>2020-12-07 15:16:20 +0100
commit055248ce983cc4e96cb50e8698e2178c9d9e5488 (patch)
tree1eec4fff52781deb874b4665167d0692fa20597e /libpod/stats.go
parent0c967319f85101b84631aff158803e3f11a8402b (diff)
downloadpodman-055248ce983cc4e96cb50e8698e2178c9d9e5488.tar.gz
podman-055248ce983cc4e96cb50e8698e2178c9d9e5488.tar.bz2
podman-055248ce983cc4e96cb50e8698e2178c9d9e5488.zip
container cgroup path
Before querying for a container's cgroup path, make sure that the container is synced. Also make sure to error out if the container isn't running. Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
Diffstat (limited to 'libpod/stats.go')
-rw-r--r--libpod/stats.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/libpod/stats.go b/libpod/stats.go
index e34739626..09d990017 100644
--- a/libpod/stats.go
+++ b/libpod/stats.go
@@ -34,7 +34,7 @@ func (c *Container) GetContainerStats(previousStats *define.ContainerStats) (*de
return stats, define.ErrCtrStateInvalid
}
- cgroupPath, err := c.CGroupPath()
+ cgroupPath, err := c.cGroupPath()
if err != nil {
return nil, err
}