Skip to content

Commit

Permalink
Merge pull request #339 from thaJeztah/dont_use_deprecated_ParseCgrou…
Browse files Browse the repository at this point in the history
…pFileUnified

group1: don't use deprecated ParseCgroupFileUnified internally
  • Loading branch information
dmcgowan authored Jun 24, 2024
2 parents ff5749a + 2096a9d commit 0896ceb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cgroup1/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ func parseKV(raw string) (string, uint64, error) {
// The resulting map does not have an element for cgroup v2 unified hierarchy.
// Use [cgroups.ParseCgroupFileUnified] to get the unified path.
func ParseCgroupFile(path string) (map[string]string, error) {
x, _, err := ParseCgroupFileUnified(path)
x, _, err := cgroups.ParseCgroupFileUnified(path)
return x, err
}

Expand Down

0 comments on commit 0896ceb

Please sign in to comment.