summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Giddins <segiddins@segiddins.me>2017-08-31 13:10:41 -0500
committerSamuel Giddins <segiddins@segiddins.me>2017-09-06 15:44:40 -0500
commit57b350c02481c9c4b2df3f517194dd2193a1ea6e (patch)
tree42638914151bd0633f8119998b1ba1e6bc25bfe5
parent6498d10282ec9de20024a4c25e2998666508bc4d (diff)
downloadbundler-seg-jobs-count.tar.gz
Default to 1 job when auto_config_jobs is not setseg-jobs-count
-rw-r--r--lib/bundler/installer.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/bundler/installer.rb b/lib/bundler/installer.rb
index 77f0f19ac3..91cb0ec55e 100644
--- a/lib/bundler/installer.rb
+++ b/lib/bundler/installer.rb
@@ -196,8 +196,10 @@ module Bundler
else
[jobs.pred, 1].max
end
- else
+ elsif auto_config_jobs
processor_count
+ else
+ 1
end
end