Skip to content

Commit a0238fb

Browse files
committed
libpod: Fill out OnlineCPUs in the FreeBSD stats handler
Signed-off-by: Mark Johnston <mark.johnston@klarasystems.com>
1 parent 602ba41 commit a0238fb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/api/handlers/compat/containers_stats_freebsd.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ func statsContainerJSON(ctnr *libpod.Container, stats *define.ContainerStats, pr
3030
TotalUsage: stats.CPUNano,
3131
},
3232
CPU: stats.CPU,
33-
OnlineCPUs: 0,
33+
OnlineCPUs: uint32(onlineCPUs),
3434
ThrottlingData: container.ThrottlingData{},
3535
},
3636
PreCPUStats: preCPUStats,

0 commit comments

Comments
 (0)