mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-12-25 18:59:33 +03:00
zpool wait: print timestamp before the header
list, status and iostat all display the -T timestamp before the header, but wait showed it after. Make it be like the others. Reported-by: Kyle Evans <kevans@FreeBSD.org> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Rob Norris <robn@despairlabs.com> Closes #15825
This commit is contained in:
parent
dd3a0a2715
commit
0606ce2055
@ -10752,6 +10752,9 @@ print_wait_status_row(wait_data_t *wd, zpool_handle_t *zhp, int row)
|
||||
col_widths[i] = MAX(strlen(headers[i]), 6) + 2;
|
||||
}
|
||||
|
||||
if (timestamp_fmt != NODATE)
|
||||
print_timestamp(timestamp_fmt);
|
||||
|
||||
/* Print header if appropriate */
|
||||
int term_height = terminal_height();
|
||||
boolean_t reprint_header = (!wd->wd_headers_once && term_height > 0 &&
|
||||
@ -10819,9 +10822,6 @@ print_wait_status_row(wait_data_t *wd, zpool_handle_t *zhp, int row)
|
||||
if (vdev_any_spare_replacing(nvroot))
|
||||
bytes_rem[ZPOOL_WAIT_REPLACE] = bytes_rem[ZPOOL_WAIT_RESILVER];
|
||||
|
||||
if (timestamp_fmt != NODATE)
|
||||
print_timestamp(timestamp_fmt);
|
||||
|
||||
for (i = 0; i < ZPOOL_WAIT_NUM_ACTIVITIES; i++) {
|
||||
char buf[64];
|
||||
if (!wd->wd_enabled[i])
|
||||
|
Loading…
Reference in New Issue
Block a user