Skip to content

Commit

Permalink
Fix up check for min memory for parallel builds
Browse files Browse the repository at this point in the history
  • Loading branch information
jbeda committed Jul 7, 2015
1 parent d630232 commit 6c4ae61
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hack/lib/golang.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 6c4ae61

Please sign in to comment.