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:
Aleksa Sarai 2016-03-29 16:11:59 +11:00
parent cb3c208a4d
commit 696cb97c28
3 changed files with 179 additions and 150 deletions

View file

@ -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
}