summaryrefslogtreecommitdiff
path: root/blktrace.c
diff options
context:
space:
mode:
Diffstat (limited to 'blktrace.c')
-rw-r--r--blktrace.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/blktrace.c b/blktrace.c
index 3c8fb4c..b445524 100644
--- a/blktrace.c
+++ b/blktrace.c
@@ -2663,9 +2663,9 @@ int main(int argc, char *argv[])
setlocale(LC_NUMERIC, "en_US");
pagesize = getpagesize();
- ncpus = sysconf(_SC_NPROCESSORS_CONF);
+ ncpus = sysconf(_SC_NPROCESSORS_ONLN);
if (ncpus < 0) {
- fprintf(stderr, "sysconf(_SC_NPROCESSORS_CONF) failed %d/%s\n",
+ fprintf(stderr, "sysconf(_SC_NPROCESSORS_ONLN) failed %d/%s\n",
errno, strerror(errno));
ret = 1;
goto out;