mirror of
https://github.com/containers/podman.git
synced 2025-09-28 01:04:28 +08:00
Fix invalid container path comparison for pid cgroup
This fixes the behavior to return nil for the PIDs cgroup if the container path is empty. Signed-off-by: Sascha Grunert <sgrunert@suse.com>
This commit is contained in:
@ -44,7 +44,7 @@ func (c *pidHandler) Destroy(ctr *CgroupControl) error {
|
||||
|
||||
// Stat fills a metrics structure with usage stats for the controller
|
||||
func (c *pidHandler) Stat(ctr *CgroupControl, m *Metrics) error {
|
||||
if ctr.path != "" {
|
||||
if ctr.path == "" {
|
||||
// nothing we can do to retrieve the pids.current path
|
||||
return nil
|
||||
}
|
||||
|
Reference in New Issue
Block a user