aboutsummaryrefslogtreecommitdiff
path: root/toys
diff options
context:
space:
mode:
Diffstat (limited to 'toys')
-rw-r--r--toys/other/taskset.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/toys/other/taskset.c b/toys/other/taskset.c
index 29ce3173..abc38723 100644
--- a/toys/other/taskset.c
+++ b/toys/other/taskset.c
@@ -127,7 +127,7 @@ void nproc_main(void)
}
// If getaffinity failed or --all, count cpu entries in proc
- if (!nproc) nproc = xcount_cpus();
+ if (!nproc) nproc = sysconf(_SC_NPROCESSORS_CONF);
xprintf("%u\n", nproc);
}