Skip to content

Commit 0896ceb

Browse files
authored
Merge pull request #339 from thaJeztah/dont_use_deprecated_ParseCgroupFileUnified
group1: don't use deprecated ParseCgroupFileUnified internally
2 parents ff5749a + 2096a9d commit 0896ceb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cgroup1/utils.go

+1-1
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)