[PATCH] fio: make default timeout be until we are done
authorJens Axboe <axboe@suse.de>
Mon, 7 Nov 2005 15:40:09 +0000 (16:40 +0100)
committerJens Axboe <axboe@suse.de>
Mon, 7 Nov 2005 15:40:09 +0000 (16:40 +0100)
fio.c

diff --git a/fio.c b/fio.c
index b46c01c625fb745753dc67ad24b97d041ce6ca3a..8085c746c78be0af5e791056e7f9962a318d5123 100644 (file)
--- a/fio.c
+++ b/fio.c
@@ -121,7 +121,7 @@ enum {
 #define MASK   (4095)
 
 #define DEF_BS         (4096)
-#define DEF_TIMEOUT    (30)
+#define DEF_TIMEOUT    (0)
 #define DEF_RATE_CYCLE (1000)
 #define DEF_ODIRECT    (1)
 #define DEF_SEQUENTIAL (1)
@@ -653,6 +653,8 @@ static int check_min_rate(struct thread_data *td, struct timeval *now)
 
 static inline int runtime_exceeded(struct thread_data *td, struct timeval *t)
 {
+       if (!td->timeout)
+               return 0;
        if (mtime_since(&td->start, t) >= td->timeout * 1000)
                return 1;