From 49d293a56de52b8f569c6352ce192f93d41e0d72 Mon Sep 17 00:00:00 2001 From: Yashpal Choudhary Date: Thu, 27 May 2021 03:29:53 +0530 Subject: [PATCH] cgroup2: capitalize io stats read and write Op values Signed-off-by: Yashpal Choudhary --- libcontainer/cgroups/fs2/io.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libcontainer/cgroups/fs2/io.go b/libcontainer/cgroups/fs2/io.go index c07a00867..bd6f2088f 100644 --- a/libcontainer/cgroups/fs2/io.go +++ b/libcontainer/cgroups/fs2/io.go @@ -118,9 +118,9 @@ func statIo(dirPath string, stats *cgroups.Stats) error { // Accommodate the cgroup v1 naming switch op { case "rbytes": - op = "read" + op = "Read" case "wbytes": - op = "write" + op = "Write" } value, err := strconv.ParseUint(d[1], 10, 0)