X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=stat.c;h=34b2b6a5d0ece0024c93b2590b65f4085d6d0593;hp=352ba48f4447cf77068b77bae7247ceec8dfa166;hb=413dd459a7710ba421061e840dd9ac3161c70f20;hpb=0aabe160c38efc3c42157fac2a9af08e070341c6 diff --git a/stat.c b/stat.c index 352ba48f..34b2b6a5 100644 --- a/stat.c +++ b/stat.c @@ -454,9 +454,10 @@ static void show_thread_status(struct thread_data *td, else fprintf(f_out, "%s: (groupid=%d): err=%2d (%s): pid=%d\n",td->name, td->groupid, td->error, td->verror, td->pid); - show_ddir_status(td, rs, td->ddir); - if (td->io_bytes[td->ddir ^ 1]) - show_ddir_status(td, rs, td->ddir ^ 1); + if (td_read(td)) + show_ddir_status(td, rs, DDIR_READ); + if (td_write(td)) + show_ddir_status(td, rs, DDIR_WRITE); runtime = mtime_since(&td->epoch, &td->end_time); if (runtime) {