Skip to content

Commit

Permalink
merge branch 'pr-2965'
Browse files Browse the repository at this point in the history
Yashpal Choudhary (1):
  cgroup2: capitalize io stats read and write Op values

LGTMs: AkihiroSuda cyphar
Closes #2965
  • Loading branch information
cyphar committed May 28, 2021
2 parents 63ee743 + 49d293a commit a2d86b7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libcontainer/cgroups/fs2/io.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit a2d86b7

Please sign in to comment.