Skip to content

Commit

Permalink
cgroup2: capitalize io stats read and write Op values
Browse files Browse the repository at this point in the history
Signed-off-by: Yashpal Choudhary <[email protected]>
  • Loading branch information
iyashu committed May 26, 2021
1 parent e005fee commit 49d293a
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 49d293a

Please sign in to comment.