From 33039c2883daf3ca07be2a58f4641d9d381a5e2b Mon Sep 17 00:00:00 2001 From: Xiangpeng Zhao Date: Mon, 2 May 2016 02:38:26 +0800 Subject: [PATCH] Fix typos in docker.go --- pkg/kubelet/dockertools/docker.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkg/kubelet/dockertools/docker.go b/pkg/kubelet/dockertools/docker.go index 157fd1b4606..f1efb571b67 100644 --- a/pkg/kubelet/dockertools/docker.go +++ b/pkg/kubelet/dockertools/docker.go @@ -51,8 +51,8 @@ const ( milliCPUToCPU = 1000 // 100000 is equivalent to 100ms - quotaPeriod = 100000 - minQuotaPerod = 1000 + quotaPeriod = 100000 + minQuotaPeriod = 1000 ) // DockerInterface is an abstract interface for testability. It abstracts the interface of docker.Client. @@ -324,8 +324,8 @@ func milliCPUToQuota(milliCPU int64) (quota int64, period int64) { quota = (milliCPU * quotaPeriod) / milliCPUToCPU // quota needs to be a minimum of 1ms. - if quota < minQuotaPerod { - quota = minQuotaPerod + if quota < minQuotaPeriod { + quota = minQuotaPeriod } return