mirror of
https://github.com/containers/podman.git
synced 2025-10-20 04:34:01 +08:00
libpod: Fill out OnlineCPUs in the FreeBSD stats handler
Signed-off-by: Mark Johnston <mark.johnston@klarasystems.com>
This commit is contained in:
@ -30,7 +30,7 @@ func statsContainerJSON(ctnr *libpod.Container, stats *define.ContainerStats, pr
|
|||||||
TotalUsage: stats.CPUNano,
|
TotalUsage: stats.CPUNano,
|
||||||
},
|
},
|
||||||
CPU: stats.CPU,
|
CPU: stats.CPU,
|
||||||
OnlineCPUs: 0,
|
OnlineCPUs: uint32(onlineCPUs),
|
||||||
ThrottlingData: container.ThrottlingData{},
|
ThrottlingData: container.ThrottlingData{},
|
||||||
},
|
},
|
||||||
PreCPUStats: preCPUStats,
|
PreCPUStats: preCPUStats,
|
||||||
|
Reference in New Issue
Block a user