Only disable stdout ETA output if results are going to stdout
[fio.git] / 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;