merge branch 'pr-2965'

Yashpal Choudhary (1):
  cgroup2: capitalize io stats read and write Op values

LGTMs: AkihiroSuda cyphar
Closes #2965
This commit is contained in:
Aleksa Sarai
2021-05-28 14:25:55 +10:00
+2 -2
View File
@@ -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)