Only disable stdout ETA output if results are going to stdout
authorJens Axboe <axboe@kernel.dk>
Thu, 31 Jan 2013 14:24:34 +0000 (15:24 +0100)
committerJens Axboe <axboe@kernel.dk>
Thu, 31 Jan 2013 14:24:34 +0000 (15:24 +0100)
If they are being redirected to a file with --output, then
we can still use the normal runtime ETA output on stdout.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
eta.c

diff --git a/eta.c b/eta.c
index 39fe10fcc40c04727984bbaad73cdc69042aed38..cfb8679379c6d5a89d268add26df235a320dee9d 100644 (file)
--- a/eta.c
+++ b/eta.c
@@ -285,7 +285,8 @@ int calc_thread_status(struct jobs_eta *je, int force)
        static struct timeval rate_prev_time, disp_prev_time;
 
        if (!force) {
-               if (output_format != FIO_OUTPUT_NORMAL)
+               if (output_format != FIO_OUTPUT_NORMAL &&
+                   f_out == stdout)
                        return 0;
                if (temp_stall_ts || eta_print == FIO_ETA_NEVER)
                        return 0;