mirror of
https://github.com/containers/podman.git
synced 2025-10-17 11:14:40 +08:00
Fix: display online_cpus in compat REST API
Signed-off-by: Boaz Shuster <boaz.shuster.github@gmail.com>
This commit is contained in:
@ -47,3 +47,8 @@ func (c *Container) GetContainerStats(previousStats *define.ContainerStats) (*de
|
||||
}
|
||||
return stats, nil
|
||||
}
|
||||
|
||||
// GetOnlineCPUs returns the number of online CPUs as set in the container cpu-set using sched_getaffinity
|
||||
func GetOnlineCPUs(container *Container) (int, error) {
|
||||
return getOnlineCPUs(container)
|
||||
}
|
||||
|
Reference in New Issue
Block a user