mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] [PATCH] Support reading number of CPUs on Mac OS X
@ 2012-01-22 20:47 Bernhard Walle
  2012-01-24  9:19 ` Michael Olbrich
  0 siblings, 1 reply; 3+ messages in thread
From: Bernhard Walle @ 2012-01-22 20:47 UTC (permalink / raw)
  To: ptxdist

Tested on 10.7 (Lion).

Signed-off-by: Bernhard Walle <bernhard@bwalle.de>
---
 bin/ptxdist |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/bin/ptxdist b/bin/ptxdist
index 74a52ad..4edbac3 100755
--- a/bin/ptxdist
+++ b/bin/ptxdist
@@ -2093,6 +2093,8 @@ setup_config() {
 		if [ ${cpus} -eq 0 ]; then
 			cpus=1
 		fi
+	elif [ "$(uname -s)" = Darwin ] ; then
+		cpus=$(sysctl -n hw.ncpu)
 	else
 		cpus=1
 	fi
-- 
1.7.7.4


-- 
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-01-24 18:04 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-01-22 20:47 [ptxdist] [PATCH] Support reading number of CPUs on Mac OS X Bernhard Walle
2012-01-24  9:19 ` Michael Olbrich
2012-01-24 18:04   ` Bernhard Walle

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox