Use %getncpus for number of parallel XZ compression threads

This commit is contained in:
Panu Matilainen 2019-01-15 11:19:56 +02:00
parent 69e8b91dcc
commit e11068a484
1 changed files with 1 additions and 1 deletions

View File

@ -796,7 +796,7 @@ static LZFILE *lzopen_internal(const char *mode, int fd, int xz)
#ifdef HAVE_LZMA_MT
} else {
if (threads == -1)
threads = sysconf(_SC_NPROCESSORS_ONLN);
threads = rpmExpandNumeric("%{getncpus}");
lzma_mt mt_options = {
.flags = 0,
.threads = threads,