]> granicus.if.org Git - zfs/commit
Dashes for zero latency values in zpool iostat -p
authorTony Hutter <hutter2@llnl.gov>
Thu, 22 Jun 2017 16:39:01 +0000 (09:39 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 22 Jun 2017 16:39:01 +0000 (09:39 -0700)
commit29eb4942856da942f1482cba9326698f91eb8c1c
tree53f4fcb43dfce3ecb74b598fa04898c5b4114db8
parentd9ad3fea3bd0368b6af0b08ccc4de1b080e2bcb7
Dashes for zero latency values in zpool iostat -p

This prints dashes instead of zeros for zero latency values in
'zpool iostat -p'.  You'll get zero latencies reported when the
disk is idle, but technically a zero latency is invalid, since you
can't measure the latency of doing nothing.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: George Melikov <mail@gmelikov.ru>
Reviewed-by: Giuseppe Di Natale <dinatale2@llnl.gov>
Signed-off-by: Tony Hutter <hutter2@llnl.gov>
Closes #6210
cmd/zpool/zpool_main.c
include/libzfs.h
lib/libzfs/libzfs_util.c