diff options
author | Alexander Yurchenko <grange@cvs.openbsd.org> | 2009-03-21 17:44:44 +0000 |
---|---|---|
committer | Alexander Yurchenko <grange@cvs.openbsd.org> | 2009-03-21 17:44:44 +0000 |
commit | 767fef2f1546516e98fda78cd7493e0327540714 (patch) | |
tree | 91133f26f8548f66322d5a86226a2271a22a2279 /sys/dev | |
parent | 11f3a7f10cdd534aca627e5e3ad245f040db336c (diff) |
Report rebuild progress only if rebuild is active.
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/pci/ips.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/ips.c b/sys/dev/pci/ips.c index 04aaf9f61b8..d70a89b6aa9 100644 --- a/sys/dev/pci/ips.c +++ b/sys/dev/pci/ips.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ips.c,v 1.86 2009/03/21 12:44:44 grange Exp $ */ +/* $OpenBSD: ips.c,v 1.87 2009/03/21 17:44:43 grange Exp $ */ /* * Copyright (c) 2006, 2007, 2009 Alexander Yurchenko <grange@openbsd.org> @@ -1182,7 +1182,7 @@ ips_ioctl_vol(struct ips_softc *sc, struct bioc_vol *bv) if (rebuild) { total = letoh32(rblstat->ld[vid].total); done = total - letoh32(rblstat->ld[vid].remain); - if (total) + if (total && total > done) bv->bv_percent = 100 * done / total; } |