]> Creatis software - creaToolsTools.git/blobdiff - Linux/scripts/LocalFunctions.sh
#3405 creaToolsTools Feature New Normal - vtk8itk5wx3-macos
[creaToolsTools.git] / Linux / scripts / LocalFunctions.sh
index 084c2a19c4dc790a5280f2023c8dd2aff79722a3..662fbae0d65c126df57ced28728e28c141813ad4 100644 (file)
@@ -121,7 +121,9 @@ function getDownloadCommand {
 ###########################################
 function getncore {
     if [ `uname` == Darwin ] ; then # MacOS
-        system_profiler | grep Processor | awk '$1=="Number" {print $4}'
+#EED 2018-08-26
+#        system_profiler | grep Processor | awk '$1=="Number" {print $4}'
+        sysctl hw.physicalcpu hw.logicalcpu | grep logicalcpu | awk '{print $2}'
     else
         cat /proc/cpuinfo | grep processor | wc -l
     fi