X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=stat.c;h=6418cf1f6c15ff4cbffbac5d6964399f64e33615;hb=3858bf9eb509136b800cda1a08247e9c0ff167b9;hp=c52620d374f01f7c51241a971c018a4722e60914;hpb=90fef2d162fba55ad684c2c80b3b9739b8d16e72;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)