summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2009-01-22 02:20:00 +0100
committerLennart Poettering <lennart@poettering.net>2009-01-22 02:20:00 +0100
commitcef5f48b501700a8202193a240e0988b52f45fc9 (patch)
tree23379cf86cdd6bef1e07e89c733ebdd10b239b14
parent4dc191646750a15c7f92f945816b59cd91c5728c (diff)
make rtstutter use pa_ncpus()
-rw-r--r--src/tests/rtstutter.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/tests/rtstutter.c b/src/tests/rtstutter.c
index 6b0cb8f7..fc23d959 100644
--- a/src/tests/rtstutter.c
+++ b/src/tests/rtstutter.c
@@ -36,6 +36,7 @@
#include <pulsecore/log.h>
#include <pulsecore/macro.h>
+#include <pulsecore/core-util.h>
static int msec_lower, msec_upper;
@@ -106,7 +107,7 @@ int main(int argc, char*argv[]) {
pa_log_notice("Creating random latencies in the range of %ims to %ims.", msec_lower, msec_upper);
- for (n = 1; n < sysconf(_SC_NPROCESSORS_CONF); n++) {
+ for (n = 1; n < pa_ncpus(); n++) {
pthread_t t;
pa_assert_se(pthread_create(&t, NULL, work, PA_INT_TO_PTR(n)) == 0);
}