diff options
author | grog <grog@FreeBSD.org> | 1998-11-02 04:12:51 +0000 |
---|---|---|
committer | grog <grog@FreeBSD.org> | 1998-11-02 04:12:51 +0000 |
commit | 0dbd09dcdedf1d9cceb9fdd28e60542a5c523c78 (patch) | |
tree | df0626c6db3c6914b8d85f5757f500358d38a61c /sbin/vinum | |
parent | 3d9496697654ee41640ada07a9dc3619425daf40 (diff) | |
download | FreeBSD-src-0dbd09dcdedf1d9cceb9fdd28e60542a5c523c78.zip FreeBSD-src-0dbd09dcdedf1d9cceb9fdd28e60542a5c523c78.tar.gz |
Show revive pointer in percentage complete as well as absolute value.
Diffstat (limited to 'sbin/vinum')
-rw-r--r-- | sbin/vinum/list.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/sbin/vinum/list.c b/sbin/vinum/list.c index 1bd0f88..dcf85f8 100644 --- a/sbin/vinum/list.c +++ b/sbin/vinum/list.c @@ -35,7 +35,7 @@ * otherwise) arising in any way out of the use of this software, even if * advised of the possibility of such damage. * - * $Id: list.c,v 1.13 1998/09/04 05:58:19 grog Exp grog $ + * $Id: list.c,v 1.14 1998/10/30 01:05:26 grog Exp grog $ */ #include <ctype.h> @@ -351,11 +351,12 @@ vinum_lpi(int plexno, int recurse) printf("\t\tPart of volume %s\n", vol.name); } if (plex.state == plex_reviving) { - printf("\t\tRevive pointer:\t\t%s\n", - roughlength(plex.revived << DEV_BSHIFT, 0)); + printf("\t\tRevive pointer:\t\t%s (%d%%)\n", + roughlength(plex.revived << DEV_BSHIFT, 0), + (int) ((u_int64_t) (plex.revived * 100)) / plex.length); printf("\t\tRevive blocksize:\t%s\n" "\t\tRevive interval:\t%10d seconds\n", - roughlength(plex.revive_blocksize << DEV_BSHIFT, 0), + roughlength(plex.revive_blocksize, 0), plex.revive_interval); } if (Verbose) { /* show the unmapped and defective parts */ |