From 6c4ae61f6b550ae34ebdae64d50547a2f18425ff Mon Sep 17 00:00:00 2001 From: Joe Beda Date: Tue, 7 Jul 2015 10:13:54 -0700 Subject: [PATCH] Fix up check for min memory for parallel builds --- hack/lib/golang.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hack/lib/golang.sh b/hack/lib/golang.sh index e2c83a9db79..e523fbb0838 100644 --- a/hack/lib/golang.sh +++ b/hack/lib/golang.sh @@ -483,8 +483,8 @@ kube::golang::build_binaries() { local gigs gigs=$(kube::golang::get_physmem) - if [[ ${gigs} -gt ${KUBE_PARALLEL_BUILD_MEMORY} ]]; then - kube::log::status "Multiple platforms requested and available ${gigs}G > threshold ${KUBE_PARALLEL_BUILD_MEMORY}G, building platforms in parallel" + if [[ ${gigs} -ge ${KUBE_PARALLEL_BUILD_MEMORY} ]]; then + kube::log::status "Multiple platforms requested and available ${gigs}G >= threshold ${KUBE_PARALLEL_BUILD_MEMORY}G, building platforms in parallel" parallel=true else kube::log::status "Multiple platforms requested, but available ${gigs}G < threshold ${KUBE_PARALLEL_BUILD_MEMORY}G, building platforms in serial"