api: grpc: add Limit to PidsStats
This will be filled by the value of pids.max, allowing clients to render usage statistics for PIDs in a container. Signed-off-by: Aleksa Sarai <asarai@suse.de>
This commit is contained in:
parent
cb3c208a4d
commit
696cb97c28
3 changed files with 179 additions and 150 deletions
|
@ -164,6 +164,7 @@ func convertToPb(st *runtime.Stat) *types.StatsResponse {
|
|||
}
|
||||
pbSt.CgroupStats.PidsStats = &types.PidsStats{
|
||||
Current: lcSt.CgroupStats.PidsStats.Current,
|
||||
Limit: lcSt.CgroupStats.PidsStats.Limit,
|
||||
}
|
||||
return pbSt
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue