fix utime_since overflow
[fio.git] / stat.c
diff --git a/stat.c b/stat.c
index e858d59d34cc1fc5a3c26575481d39f92646d652..604c235b0c57a0551e28907cf3cf90f7420b5a19 100644 (file)
--- a/stat.c
+++ b/stat.c
@@ -293,7 +293,8 @@ static void show_thread_status(struct thread_stat *ts,
        double io_u_lat_u[FIO_IO_U_LAT_U_NR];
        double io_u_lat_m[FIO_IO_U_LAT_M_NR];
 
-       if (!(ts->io_bytes[0] + ts->io_bytes[1]))
+       if (!(ts->io_bytes[0] + ts->io_bytes[1]) &&
+           !(ts->total_io_u[0] + ts->total_io_u[1]))
                return;
 
        if (!ts->error)