Fill forgotten KernelUsage field of CgroupStats.MemoryStats
Signed-off-by: Kenfe-Mickael Laventure <mickael.laventure@gmail.com>
This commit is contained in:
parent
9f8e542234
commit
d8fce0997e
1 changed files with 6 additions and 0 deletions
|
@ -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{
|
||||
|
|
Loading…
Reference in a new issue