Skip to content

Commit ff7edec

Browse files
committed
Remove filepath.Clean()
1 parent ed84ada commit ff7edec

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

metric/system/cgroup/util.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -483,7 +483,6 @@ func (r *Reader) ProcessCgroupPaths(pid int) (PathList, error) {
483483
if r.cgroupsHierarchyOverride != "" {
484484
path = r.cgroupsHierarchyOverride
485485
}
486-
path = filepath.Clean(path)
487486

488487
//on newer docker versions (1.41+?), docker will do namespacing with cgroups
489488
// such that we'll get a cgroup path like `0::/../../user.slice/user-1000.slice/session-520.scope`

0 commit comments

Comments
 (0)