Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

[source.rb] print how many CPUs we're using

  • Loading branch information...
commit d8d6dfc188c80d24dd2b5a62b625d9f2ee699318 1 parent 0c0f86a
Chris Lundquist authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 recipes/install_from_source.rb
View
4 recipes/install_from_source.rb
@@ -49,9 +49,9 @@
creates "/usr/local/src/node-v#{node['nodejs']['version']}"
end
-bash "compile node.js" do
+make_threads = node['cpu'] ? node['cpu']['total'].to_i : 2
+bash "compile node.js (on #{make_threads} cpu)" do
# OSX doesn't have the attribute so arbitrarily default 2
- make_threads = node['cpu'] ? node['cpu']['total'].to_i : 2
cwd "/usr/local/src/node-v#{node['nodejs']['version']}"
code <<-EOH
PATH="/usr/local/bin:$PATH"
Please sign in to comment.
Something went wrong with that request. Please try again.