Skip to content

Commit dae6735

Browse files
committed
ParseCgroupFile: fix wrong comment about unified hierarchy
ref: fe19473 Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
1 parent a8e04ba commit dae6735

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

utils.go

+1-3
Original file line numberDiff line numberDiff line change
@@ -261,9 +261,7 @@ func parseKV(raw string) (string, uint64, error) {
261261
// "pids": "/user.slice/user-1000.slice"
262262
// etc.
263263
//
264-
// Note that for cgroup v2 unified hierarchy, there are no per-controller
265-
// cgroup paths, so the resulting map will have a single element where the key
266-
// is empty string ("") and the value is the cgroup path the <pid> is in.
264+
// The resulting map does not have an element for cgroup v2 unified hierarchy.
267265
func ParseCgroupFile(path string) (map[string]string, error) {
268266
f, err := os.Open(path)
269267
if err != nil {

0 commit comments

Comments
 (0)