Skip to content

Commit 2096a9d

Browse files
committed
group1: don't use deprecated ParseCgroupFileUnified internally
Don't call this function internally to make it easier to see when it becomes unused. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
1 parent be0e520 commit 2096a9d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cgroup1/utils.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ func parseKV(raw string) (string, uint64, error) {
196196
// The resulting map does not have an element for cgroup v2 unified hierarchy.
197197
// Use [cgroups.ParseCgroupFileUnified] to get the unified path.
198198
func ParseCgroupFile(path string) (map[string]string, error) {
199-
x, _, err := ParseCgroupFileUnified(path)
199+
x, _, err := cgroups.ParseCgroupFileUnified(path)
200200
return x, err
201201
}
202202

0 commit comments

Comments
 (0)