From dae6735f2be5a4dbeb43eb726a26419aef9e2185 Mon Sep 17 00:00:00 2001
From: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
Date: Thu, 26 May 2022 12:02:27 +0900
Subject: [PATCH] ParseCgroupFile: fix wrong comment about unified hierarchy

ref: fe1947308d8f3fc3a7ef8996ba1da7b82de4e053

Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
---
 utils.go | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/utils.go b/utils.go
index 2297980d..7dfca078 100644
--- a/utils.go
+++ b/utils.go
@@ -261,9 +261,7 @@ func parseKV(raw string) (string, uint64, error) {
 //   "pids": "/user.slice/user-1000.slice"
 // etc.
 //
-// Note that for cgroup v2 unified hierarchy, there are no per-controller
-// cgroup paths, so the resulting map will have a single element where the key
-// is empty string ("") and the value is the cgroup path the <pid> is in.
+// The resulting map does not have an element for cgroup v2 unified hierarchy.
 func ParseCgroupFile(path string) (map[string]string, error) {
 	f, err := os.Open(path)
 	if err != nil {