libpod: Fill out OnlineCPUs in the FreeBSD stats handler

Signed-off-by: Mark Johnston <mark.johnston@klarasystems.com>
This commit is contained in:
Mark Johnston
2025-09-18 14:22:37 +00:00
parent 602ba415c6
commit a0238fb19f

View File

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