]> git.ipfire.org Git - thirdparty/mdadm.git/commit
bitmap: print correct percentage of bitmap in use.
authorNeilBrown <neilb@suse.de>
Thu, 22 Dec 2011 22:07:14 +0000 (09:07 +1100)
committerNeilBrown <neilb@suse.de>
Thu, 22 Dec 2011 22:07:14 +0000 (09:07 +1100)
commit6c9a5fa103c65dfe00fe6648c89357f1ffeb9e5c
treeb027674bff04fcd7e8c31b77a7286f2efb6981ad
parent7b80ad6af2a1ae027eed140010c4d4e160bfe1f9
bitmap: print correct percentage of bitmap in use.

We were adding 1, presumably to avoid div-by-zero possibilities.
It is better to only substitute '1' if the value actually is zero,
else for small numbers of bits the difference is visible.

Signed-off-by: NeilBrown <neilb@suse.de>
bitmap.c