Commit c4aa7ee0 authored by k8s-merge-robot's avatar k8s-merge-robot Committed by GitHub

Merge pull request #25024 from xiangpengzhao/fix_typos

Automatic merge from submit-queue Fix typos in docker.go Fix minor typos in variable name
parents 8c957788 33039c28
...@@ -53,8 +53,8 @@ const ( ...@@ -53,8 +53,8 @@ const (
milliCPUToCPU = 1000 milliCPUToCPU = 1000
// 100000 is equivalent to 100ms // 100000 is equivalent to 100ms
quotaPeriod = 100000 quotaPeriod = 100000
minQuotaPerod = 1000 minQuotaPeriod = 1000
) )
// DockerInterface is an abstract interface for testability. It abstracts the interface of docker client. // DockerInterface is an abstract interface for testability. It abstracts the interface of docker client.
...@@ -348,8 +348,8 @@ func milliCPUToQuota(milliCPU int64) (quota int64, period int64) { ...@@ -348,8 +348,8 @@ func milliCPUToQuota(milliCPU int64) (quota int64, period int64) {
quota = (milliCPU * quotaPeriod) / milliCPUToCPU quota = (milliCPU * quotaPeriod) / milliCPUToCPU
// quota needs to be a minimum of 1ms. // quota needs to be a minimum of 1ms.
if quota < minQuotaPerod { if quota < minQuotaPeriod {
quota = minQuotaPerod quota = minQuotaPeriod
} }
return return
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment