summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bench/ioq.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bench/ioq.c b/bench/ioq.c
index b3fbfbf..5db585a 100644
--- a/bench/ioq.c
+++ b/bench/ioq.c
@@ -223,7 +223,7 @@ int main(int argc, char *argv[]) {
}
if (threads <= 0) {
- threads = xsysconf(_SC_NPROCESSORS_ONLN);
+ threads = nproc();
if (threads > 8) {
threads = 8;
}