X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=stat.c;h=10d9efead57176bee8aeba9abfbccc617520e2c4;hp=442caa0cd1973400d5323a7202b6350155a6ae1d;hb=5a4f574ed97b5696bc0db75772182db7775ddfbb;hpb=ee0ccb794be1d3c677e2c02b416a8702d59811d7 diff --git a/stat.c b/stat.c index 442caa0c..10d9efea 100644 --- a/stat.c +++ b/stat.c @@ -1691,7 +1691,7 @@ void add_bw_sample(struct thread_data *td, enum fio_ddir ddir, unsigned int bs, fio_gettime(&td->bw_sample_time, NULL); } -void add_iops_sample(struct thread_data *td, enum fio_ddir ddir, +void add_iops_sample(struct thread_data *td, enum fio_ddir ddir, unsigned int bs, struct timeval *t) { struct thread_stat *ts = &td->ts; @@ -1718,7 +1718,7 @@ void add_iops_sample(struct thread_data *td, enum fio_ddir ddir, add_stat_sample(&ts->iops_stat[ddir], iops); if (td->iops_log) - add_log_sample(td, td->iops_log, iops, ddir, 0); + add_log_sample(td, td->iops_log, iops, ddir, bs); td->stat_io_blocks[ddir] = td->this_io_blocks[ddir]; }