summaryrefslogtreecommitdiff
path: root/lib/bundler/installer.rb
diff options
context:
space:
mode:
authorSmit Shah <who828@gmail.com>2014-01-22 10:25:32 +0530
committerSmit Shah <who828@gmail.com>2014-01-22 10:32:47 +0530
commitf62613d39b789e8742c3b4afd1ce67dbb42241ee (patch)
treefd834e0a74c8657fcac8c221badf1ebafb7a39d8 /lib/bundler/installer.rb
parent1f86e5acbad68fe5acd959d01a605b321b4f9d2c (diff)
downloadbundler-f62613d39b789e8742c3b4afd1ce67dbb42241ee.tar.gz
Pick n-1 jobs by default
Diffstat (limited to 'lib/bundler/installer.rb')
-rw-r--r--lib/bundler/installer.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bundler/installer.rb b/lib/bundler/installer.rb
index fa5b10fd1e..3069843ac4 100644
--- a/lib/bundler/installer.rb
+++ b/lib/bundler/installer.rb
@@ -90,7 +90,7 @@ module Bundler
# dependencies might actually affect the installation of a gem.
# that said, it's a rare situation (other than rake), and parallel
# installation is just SO MUCH FASTER. so we let people opt in.
- jobs = [Bundler.settings[:jobs].to_i, 1].max
+ jobs = [Bundler.settings[:jobs].to_i-1, 1].max
if jobs > 1 && can_install_parallely?
install_in_parallel jobs, options[:standalone]
else