Skip to content

Commit

Permalink
Merge pull request #2816 from odinuge/cgroup-v2-cache
Browse files Browse the repository at this point in the history
Fix memory stats for cache in fs2
  • Loading branch information
Mrunal Patel authored Feb 23, 2021
2 parents f245b8c + 6c5ed0d commit e00273e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libcontainer/cgroups/fs2/memory.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ func statMemory(dirPath string, stats *cgroups.Stats) error {
}
stats.MemoryStats.Stats[t] = v
}
stats.MemoryStats.Cache = stats.MemoryStats.Stats["cache"]
stats.MemoryStats.Cache = stats.MemoryStats.Stats["file"]

memoryUsage, err := getMemoryDataV2(dirPath, "")
if err != nil {
Expand Down

0 comments on commit e00273e

Please sign in to comment.