From: Jens Axboe Date: Mon, 12 Dec 2005 15:29:20 +0000 (+0100) Subject: [PATCH] Misc minor fixes X-Git-Tag: fio-1.2~3 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=0d98aadc08078b16506ea5b3ceb9a93d36bbe038;p=fio.git [PATCH] Misc minor fixes - examples/aio-read needs size= - check ->zone_skip before doing division, ->zone_size is always set. --- diff --git a/examples/aio-read b/examples/aio-read index 832e0060..ed8cb2c4 100644 --- a/examples/aio-read +++ b/examples/aio-read @@ -3,6 +3,7 @@ ioengine=libaio rw=randread bs=128k +size=512m [/data1/file1] iodepth=4 diff --git a/fio.c b/fio.c index 5dbe9c3d..493aa647 100644 --- a/fio.c +++ b/fio.c @@ -1933,7 +1933,7 @@ static void print_thread_status(void) if (td->verify) bytes_total += td->total_io_size; - if (td->zone_size) + if (td->zone_size && td->zone_skip) bytes_total /= (td->zone_skip / td->zone_size); bytes_done += td->io_bytes[DDIR_READ] +td->io_bytes[DDIR_WRITE];