Skip to content

Commit

Permalink
1946 incorrect formatting when listing output of multiple pools with …
Browse files Browse the repository at this point in the history
…zpool iostat -v

Reviewed by: Richard Elling <[email protected]>
Reviewed by: Joshua M. Clulow <[email protected]>
Approved by: Richard Lowe <[email protected]>
  • Loading branch information
storkone committed Jan 17, 2012
1 parent c89a15d commit e1d5e50
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion usr/src/cmd/zpool/zpool_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down Expand Up @@ -2223,7 +2224,8 @@ get_namewidth(zpool_handle_t *zhp, void *data)
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);
}

/*
Expand Down

0 comments on commit e1d5e50

Please sign in to comment.