X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=btt%2Ftrace.c;h=ee5a654a133f9c5198642af375289527407f53ed;hb=32ff7e3b023c655c63d53b2b14e151f82bd83229;hp=efb9996cdd78f1e9044683a612753bfea13381fa;hpb=64c031619f9d7fbafce96d6e6c29f945b589141b;p=blktrace.git diff --git a/btt/trace.c b/btt/trace.c index efb9996..ee5a654 100644 --- a/btt/trace.c +++ b/btt/trace.c @@ -28,7 +28,7 @@ static void __add_trace(struct io *iop) iostat_check_time(iop->t.time); if (verbose && ((now - last_vtrace) > 0)) { - printf("%10lu t\r", n_traces); + printf("%10lu t (%6.2lf%%)\r", n_traces, pct_done()); if ((n_traces % 1000000) == 0) printf("\n"); fflush(stdout); last_vtrace = now;