agent/api/task/task_unsupported.go
func (task *Task) dockerCPUShares(containerCPU uint) int64 {
	if containerCPU <= 1 {
		seelog.Debugf(
			"Converting CPU shares to allowed minimum of 2 for task arn: [%s] and cpu shares: %d",
			task.Arn, containerCPU)
		return 2
	}
	return int64(containerCPU)
}
func (task *Task) dockerCPUShares(containerCPU uint) int64 {
	if containerCPU <= 1 {
		seelog.Debugf(
			"Converting CPU shares to allowed minimum of 2 for task arn: [%s] and cpu shares: %d",
			task.Arn, containerCPU)
		return 2
	}
	return int64(containerCPU)
}
func ( task * Task ) dockerCPUShares ( containerCPU uint ) int64 { if containerCPU <= 1 { seelog . Debugf ( " " , task . Arn , containerCPU ) return 2 } return int64 ( containerCPU ) }
// duplicate of dockerCPUShares in task_linux.go
duplicate of dockerCPUShares in task_linux . go