Skip to content

Commit

Permalink
tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmilk committed Dec 14, 2024
1 parent 3a07c76 commit c7fe060
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/zfs-tests/tests/functional/trim/trim.kshlib
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,12 @@ function get_trim_io
# Sum the ind or agg columns of the trim request size histogram.
case "$type" in
"ind")
log_must zpool iostat -pr $pool $vdev
zpool iostat -pr $pool $vdev |
awk '$1 ~ /[0-9].*/ { sum += $12 } END { print sum }'
;;
"agg")
log_must zpool iostat -pr $pool $vdev
zpool iostat -pr $pool $vdev |
awk '$1 ~ /[0-9].*/ { sum += $13 } END { print sum }'
;;
Expand Down

0 comments on commit c7fe060

Please sign in to comment.