Skip to content

Commit

Permalink
group1: don't use deprecated ParseCgroupFileUnified internally
Browse files Browse the repository at this point in the history
Don't call this function internally to make it easier to see when it
becomes unused.

Signed-off-by: Sebastiaan van Stijn <[email protected]>
  • Loading branch information
thaJeztah committed Jun 21, 2024
1 parent be0e520 commit 2096a9d
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 2096a9d

Please sign in to comment.