Permalink
Browse files

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

  • Loading branch information...
1 parent 0c0f86a commit d8d6dfc188c80d24dd2b5a62b625d9f2ee699318 Chris Lundquist committed Jan 5, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 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"

0 comments on commit d8d6dfc

Please sign in to comment.