changeset 13564:cf89c0c60496

1946 incorrect formatting when listing output of multiple pools with zpool iostat -v Reviewed by: Richard Elling <richard.elling@richardelling.com> Reviewed by: Joshua M. Clulow <josh@sysmgr.org> Approved by: Richard Lowe <richlowe@richlowe.net>
author Frederik Wessels <wessels147@gmail.com>
date Tue, 17 Jan 2012 02:59:29 +0000
parents fdbd5ad458de
children fed8865d992e
files usr/src/cmd/zpool/zpool_main.c
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/usr/src/cmd/zpool/zpool_main.c	Sun Jan 15 23:16:19 2012 -0500
+++ b/usr/src/cmd/zpool/zpool_main.c	Tue Jan 17 02:59:29 2012 +0000
@@ -23,6 +23,7 @@
  * Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
  * Copyright 2011 Nexenta Systems, Inc. All rights reserved.
  * Copyright (c) 2011 by Delphix. All rights reserved.
+ * Copyright (c) 2012 by Frederik Wessels. All rights reserved.
  */
 
 #include <assert.h>
@@ -2223,7 +2224,8 @@
 		if (!cb->cb_verbose)
 			cb->cb_namewidth = strlen(zpool_get_name(zhp));
 		else
-			cb->cb_namewidth = max_width(zhp, nvroot, 0, 0);
+			cb->cb_namewidth = max_width(zhp, nvroot, 0,
+			    cb->cb_namewidth);
 	}
 
 	/*