summaryrefslogtreecommitdiff
path: root/pkg/cgroups/pids.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/cgroups/pids.go')
-rw-r--r--pkg/cgroups/pids.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/cgroups/pids.go b/pkg/cgroups/pids.go
index f37ac7611..342b25d85 100644
--- a/pkg/cgroups/pids.go
+++ b/pkg/cgroups/pids.go
@@ -50,7 +50,7 @@ func (c *pidHandler) Stat(ctr *CgroupControl, m *Metrics) error {
return fmt.Errorf("function not implemented yet")
}
- PIDRoot := ctr.getCgroupv1Path(Pids)
+ PIDRoot = ctr.getCgroupv1Path(Pids)
current, err := readFileAsUint64(filepath.Join(PIDRoot, "pids.current"))
if err != nil {