Fix container stats.

Signed-off-by: Lantao Liu <lantaol@google.com>
This commit is contained in:
Lantao Liu
2017-09-28 05:49:32 +00:00
parent e723a5018b
commit de6287d626
2 changed files with 27 additions and 2 deletions

View File

@@ -78,8 +78,8 @@ func (c *criContainerdService) getContainerMetrics(
// If snapshotstore doesn't have cached snapshot information
// set WritableLayer usage to zero
if err == nil {
inodesUsed = sn.Size
usedBytes = sn.Inodes
usedBytes = sn.Size
inodesUsed = sn.Inodes
}
cs.WritableLayer = &runtime.FilesystemUsage{
Timestamp: sn.Timestamp,