mirror of
https://github.com/docker/compose.git
synced 2026-06-30 05:06:19 +00:00
commit
9d12eec148
1 changed files with 2 additions and 1 deletions
|
|
@ -529,7 +529,8 @@ func getDeployResources(s types.ServiceConfig) container.Resources {
|
|||
CPURealtimePeriod: s.CPURTPeriod,
|
||||
CPURealtimeRuntime: s.CPURTRuntime,
|
||||
CPUShares: s.CPUShares,
|
||||
CPUPercent: int64(s.CPUS * 100),
|
||||
NanoCPUs: int64(s.CPUS * 1e9),
|
||||
CPUPercent: int64(s.CPUPercent * 100),
|
||||
CpusetCpus: s.CPUSet,
|
||||
DeviceCgroupRules: s.DeviceCgroupRules,
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue