X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=stat.c;h=6418cf1f6c15ff4cbffbac5d6964399f64e33615;hb=666bf1234912c3790ff1e6204596891c6ef7180c;hp=c52620d374f01f7c51241a971c018a4722e60914;hpb=86375e3446fdeb6c4dd1406cc0e4c456af954a2c;p=fio.git diff --git a/stat.c b/stat.c index c52620d3..6418cf1f 100644 --- a/stat.c +++ b/stat.c @@ -752,7 +752,8 @@ void add_bw_sample(struct thread_data *td, enum fio_ddir ddir, unsigned int bs, if (spent < td->o.bw_avg_time) return; - rate = (td->this_io_bytes[ddir] - ts->stat_io_bytes[ddir]) * 1000 / spent / 1024; + rate = (td->this_io_bytes[ddir] - ts->stat_io_bytes[ddir]) * + 1000 / spent / 1024; add_stat_sample(&ts->bw_stat[ddir], rate); if (ts->bw_log)