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>
unsigned long iops, bw;
sleep(1);
+
+ /* don't print partial run, if interrupted by signal */
+ if (finish)
+ break;
for (j = 0; j < nthreads; j++) {
this_done += s->done;
this_call += s->calls;