[PATCH] fio: redundant setting of run_str[]
authorJens Axboe <axboe@suse.de>
Tue, 8 Nov 2005 15:13:33 +0000 (16:13 +0100)
committerJens Axboe <axboe@suse.de>
Tue, 8 Nov 2005 15:13:33 +0000 (16:13 +0100)
fio.c

diff --git a/fio.c b/fio.c
index e8692f8a844d59a1a02ec3ee5302744be5cf6866..d972463d17eaa83d05b6f4611733feb6d3ccbde3 100644 (file)
--- a/fio.c
+++ b/fio.c
@@ -2462,11 +2462,8 @@ static void run_threads(char *argv[])
                for (i = 0; i < thread_number; i++) {
                        struct thread_data *td = &threads[i];
 
-                       if (td->runstate == TD_RUNNING)
-                               run_str[td->thread_number - 1] = '+';
-                       else if (td->runstate == TD_VERIFYING)
-                               run_str[td->thread_number - 1] = 'V';
-                       else
+                       if (td->runstate != TD_RUNNING &&
+                           td->runstate != TD_VERIFYING)
                                continue;
 
                        check_str_update(td, nr_running, t_rate, m_rate);