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:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user