From 94e2ddad735d89225071e8b2c9db7366aaa3d75c Mon Sep 17 00:00:00 2001 From: Johnny Willemsen Date: Sat, 9 May 2020 09:48:20 +0200 Subject: [PATCH] Implement cpu_cores for windows * rakelib/config.rb: --- rakelib/config.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rakelib/config.rb b/rakelib/config.rb index abfbfdd..6676002 100644 --- a/rakelib/config.rb +++ b/rakelib/config.rb @@ -273,7 +273,7 @@ def self.is_osx @@is_osx end - @@cpu_cores = (@@is_linux ? `cat /proc/cpuinfo | grep processor | wc -l`.to_i : 1) + @@cpu_cores = (@@is_linux ? `cat /proc/cpuinfo | grep processor | wc -l`.to_i : (ENV['NUMBER_OF_PROCESSORS'] || 1).to_i) def self.cpu_cores @@cpu_cores @@ -540,4 +540,4 @@ def self.load include R2CORBA::AccessMethods # load current config (if any) -R2CORBA::Config.load \ No newline at end of file +R2CORBA::Config.load