Commit fa8bbe9c authored by VideoLAN's avatar VideoLAN Committed by Rafaël Carré

contribs: get number of CPUs on darwin

parent 91b0f528
......@@ -385,6 +385,9 @@ case `uname` in
Linux)
CPUS=`grep -c ^processor /proc/cpuinfo`
;;
Darwin)
CPUS=`sysctl hw.ncpu|cut -d: -f2`
;;
*)
CPUS=1 # default
;;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment