mirror of
https://github.com/containers/podman.git
synced 2025-06-23 02:18:13 +08:00
Merge pull request #5807 from openSUSE/pids-ctr-path
Fix invalid container path comparison for pid cgroup
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
|
// Stat fills a metrics structure with usage stats for the controller
|
||||||
func (c *pidHandler) Stat(ctr *CgroupControl, m *Metrics) error {
|
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
|
// nothing we can do to retrieve the pids.current path
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user