]> git.ipfire.org Git - thirdparty/util-linux.git/commit
lscpu: fix fallback nthreads calculation
authorHeiko Carstens <heiko.carstens@de.ibm.com>
Wed, 10 Aug 2011 08:34:29 +0000 (10:34 +0200)
committerHeiko Carstens <heiko.carstens@de.ibm.com>
Sun, 14 Aug 2011 15:34:17 +0000 (17:34 +0200)
commit32a46618bc615200829864210a906cd39f99e02e
tree6940f5c82ccef253cdb548fcb73e3841a1243935
parent9d1a3a18f31388c0a4587943e63cdf2c8a490387
lscpu: fix fallback nthreads calculation

The fallback calculation of nthreads did not consider books.
In order to avoid division/multiply by/with zero make sure each number
used is at least "1".

Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
sys-utils/lscpu.c