mirror of
https://github.com/kemko/nomad.git
synced 2026-01-08 19:35:41 +03:00
Remove an unnecessary conversion
This commit is contained in:
@@ -1245,7 +1245,7 @@ func (d *DockerDriver) createContainerConfig(ctx *ExecContext, task *structs.Tas
|
||||
if driverConfig.CPUCFSPeriod == 0 {
|
||||
driverConfig.CPUCFSPeriod = defaultCFSPeriodUS
|
||||
}
|
||||
hostConfig.CPUPeriod = int64(driverConfig.CPUCFSPeriod)
|
||||
hostConfig.CPUPeriod = driverConfig.CPUCFSPeriod
|
||||
hostConfig.CPUQuota = int64(percentTicks*float64(driverConfig.CPUCFSPeriod)) * int64(numCores)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user