t/io_uring: don't print partial IOPS etc output if exit signal was received
authorJens Axboe <axboe@kernel.dk>
Mon, 4 Oct 2021 22:16:01 +0000 (16:16 -0600)
committerJens Axboe <axboe@kernel.dk>
Mon, 4 Oct 2021 22:16:01 +0000 (16:16 -0600)
commita1f171000c21e97ad4e44dcd7c810834507b184f
tree625388c0d07f50c5fae785622cc5e8fa3973c19a
parent256714ea813b2e4d626d0db0d21a719d893cfb9a
t/io_uring: don't print partial IOPS etc output if exit signal was received

The run always terminates with what looks like a much slower cycle than
the previous seconds. That's not really the case, it's just that the
sleep() got interrupted by the signal and we slept less than we thought
we did, yet we still account it as a full second.

Just make it cleaner and break if finish is set.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
t/io_uring.c