X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=Linux%2Fscripts%2FLocalFunctions.sh;h=662fbae0d65c126df57ced28728e28c141813ad4;hb=HEAD;hp=084c2a19c4dc790a5280f2023c8dd2aff79722a3;hpb=86c5583aab988649d3987a15fcd17da4739baff3;p=creaToolsTools.git diff --git a/Linux/scripts/LocalFunctions.sh b/Linux/scripts/LocalFunctions.sh index 084c2a1..662fbae 100644 --- a/Linux/scripts/LocalFunctions.sh +++ b/Linux/scripts/LocalFunctions.sh @@ -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