From 2096a9d186fd2de14cd35a403cebac53d17124d8 Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Fri, 21 Jun 2024 10:12:55 +0200 Subject: [PATCH] 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 --- cgroup1/utils.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cgroup1/utils.go b/cgroup1/utils.go index d82ff43d..5d4fe322 100644 --- a/cgroup1/utils.go +++ b/cgroup1/utils.go @@ -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 }