X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=stat.c;h=0bb21d0093ac05a4e71cda24cea5cfde25ee916b;hb=349cdc89ffebb8f3a9cf3ff5be6a9934b94f1b05;hp=f1d468c783b558ec2acef34f87d41ba748824518;hpb=d694a6a7c02f577b2bb5d0ad24331b775acf6869;p=fio.git diff --git a/stat.c b/stat.c index f1d468c7..0bb21d00 100644 --- a/stat.c +++ b/stat.c @@ -2442,7 +2442,7 @@ static int add_bw_samples(struct thread_data *td, struct timeval *t) /* * Compute both read and write rates for the interval. */ - for (ddir = DDIR_READ; ddir < DDIR_RWDIR_CNT; ddir++) { + for (ddir = 0; ddir < DDIR_RWDIR_CNT; ddir++) { uint64_t delta; delta = td->this_io_bytes[ddir] - td->stat_io_bytes[ddir]; @@ -2517,7 +2517,7 @@ static int add_iops_samples(struct thread_data *td, struct timeval *t) /* * Compute both read and write rates for the interval. */ - for (ddir = DDIR_READ; ddir < DDIR_RWDIR_CNT; ddir++) { + for (ddir = 0; ddir < DDIR_RWDIR_CNT; ddir++) { uint64_t delta; delta = td->this_io_blocks[ddir] - td->stat_io_blocks[ddir];