]> 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)
committerKarel Zak <kzak@redhat.com>
Tue, 18 Oct 2011 05:12:41 +0000 (07:12 +0200)
commitd94f62fe46feef1230b288bd51f1e9dbe1782cb6
treecff456c25a3e50d00ccf5717fefa36429fbcd0bc
parent0ee7da4d8021e2b1f24b4d04b96a3b953fe7d5a0
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