From d8fce0997eda4c25bd98fdea3e0be6f93c6245c6 Mon Sep 17 00:00:00 2001 From: Kenfe-Mickael Laventure Date: Fri, 19 Feb 2016 15:29:51 -0800 Subject: [PATCH] Fill forgotten KernelUsage field of CgroupStats.MemoryStats Signed-off-by: Kenfe-Mickael Laventure --- api/grpc/server/server.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/api/grpc/server/server.go b/api/grpc/server/server.go index 09800dc..d1227be 100644 --- a/api/grpc/server/server.go +++ b/api/grpc/server/server.go @@ -351,6 +351,12 @@ func convertToPb(st *runtime.Stat) *types.StatsResponse { Failcnt: memSt.SwapUsage.Failcnt, Limit: memSt.SwapUsage.Limit, }, + KernelUsage: &types.MemoryData{ + Usage: memSt.KernelUsage.Usage, + MaxUsage: memSt.KernelUsage.MaxUsage, + Failcnt: memSt.KernelUsage.Failcnt, + Limit: memSt.KernelUsage.Limit, + }, } blkSt := lcSt.CgroupStats.BlkioStats pbSt.CgroupStats.BlkioStats = &types.BlkioStats{