X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=stat.c;h=9d1f66ac9a0b9eb7006add0411d987a40bacd038;hb=e76b1da43606f86fc23c8acb63114cba0d80a1c7;hp=c52620d374f01f7c51241a971c018a4722e60914;hpb=5338f35ddd52203048e2f6262b7254dddc2d8d52;p=fio.git diff --git a/stat.c b/stat.c index c52620d3..9d1f66ac 100644 --- a/stat.c +++ b/stat.c @@ -644,7 +644,7 @@ void show_run_stats(void) * don't overwrite last signal output */ if (!terse_output) - printf("\n"); + log_info("\n"); for (i = 0; i < nr_ts; i++) { ts = &threadstats[i]; @@ -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)