X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=stat.c;h=0bb21d0093ac05a4e71cda24cea5cfde25ee916b;hp=f1d468c783b558ec2acef34f87d41ba748824518;hb=c1f50f765a0a51931605c1fb223d166e3b3a93c6;hpb=6d6a7e02b818072ec5016662917f3b5cd0f2f3e0 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];