Skip to content

Commit 737ab1a

Browse files
committed
bench/ioq: Use nproc()
1 parent 05a3361 commit 737ab1a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bench/ioq.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ int main(int argc, char *argv[]) {
223223
}
224224

225225
if (threads <= 0) {
226-
threads = xsysconf(_SC_NPROCESSORS_ONLN);
226+
threads = nproc();
227227
if (threads > 8) {
228228
threads = 8;
229229
}

0 commit comments

Comments
 (0)