summaryrefslogtreecommitdiff
path: root/libs/pbd
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2013-05-08 14:48:28 -0400
committerPaul Davis <paul@linuxaudiosystems.com>2013-05-08 14:48:28 -0400
commitbebe2af95ad9999fdca719450dc2c70cfb849076 (patch)
tree2bf6f4bae48b72c4607751bf370cbb1f2ce70a15 /libs/pbd
parente1b0f1bd0b03c071d2b5987e4ab75ef059e32111 (diff)
parentcadfc2aee13e14af341dd68f33308a421820c855 (diff)
merge with master
Diffstat (limited to 'libs/pbd')
-rw-r--r--libs/pbd/cpus.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/pbd/cpus.cc b/libs/pbd/cpus.cc
index 77b95a455d..48b919cd96 100644
--- a/libs/pbd/cpus.cc
+++ b/libs/pbd/cpus.cc
@@ -40,7 +40,7 @@ hardware_concurrency()
#elif defined(__APPLE__) || defined(__FreeBSD__)
int count;
size_t size=sizeof(count);
- return sysctlbyname("hw.ncpu",&count,&size,NULL,0)?0:count;
+ return sysctlbyname("hw.physicalcpu",&count,&size,NULL,0)?0:count;
#elif defined(HAVE_UNISTD) && defined(_SC_NPROCESSORS_ONLN)
int const count=sysconf(_SC_NPROCESSORS_ONLN);
return (count>0)?count:0;