Add --output-format command line option
[fio.git] / eta.c
diff --git a/eta.c b/eta.c
index 1caee4996d399209c507f88b57801f3f35e96c64..075ce8c81a010b1e57e0a7d31d5c8f7259b69a47 100644 (file)
--- a/eta.c
+++ b/eta.c
@@ -264,7 +264,9 @@ int calc_thread_status(struct jobs_eta *je, int force)
        static struct timeval rate_prev_time, disp_prev_time;
 
        if (!force) {
-               if (temp_stall_ts || terse_output || eta_print == FIO_ETA_NEVER)
+               if (output_format != FIO_OUTPUT_NORMAL)
+                       return 0;
+               if (temp_stall_ts || eta_print == FIO_ETA_NEVER)
                        return 0;
 
                if (!isatty(STDOUT_FILENO) && (eta_print != FIO_ETA_ALWAYS))