[PATCH] fio: thread in TD_VERIFYING state is also running
authorJens Axboe <axboe@suse.de>
Wed, 7 Dec 2005 11:09:53 +0000 (12:09 +0100)
committerJens Axboe <axboe@suse.de>
Wed, 7 Dec 2005 11:09:53 +0000 (12:09 +0100)
fio.c

diff --git a/fio.c b/fio.c
index 1a9f052b02b5aaf06f740af7694f85002b116b8c..d7fa0d1eff557ea9e9d21b30cef8d1c29f263542 100644 (file)
--- a/fio.c
+++ b/fio.c
@@ -1827,12 +1827,16 @@ static void print_thread_status(void)
        for (i = 0; i < thread_number; i++) {
                struct thread_data *td = &threads[i];
 
-               if (td->runstate == TD_RUNNING{
+               if (td->runstate == TD_RUNNING || td->runstate == TD_VERIFYING){
                        nr_running++;
                        t_rate += td->rate;
                        m_rate += td->ratemin;
                }
 
+               /*
+                * doesn't quite work for verify, as it doesn't bump the
+                * io counters. will fix that later.
+                */
                bytes_total += td->total_io_size;
                bytes_done += td->io_bytes;