From 01f799767fc6df7f1488787174e4768e6d0f3ebb Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Mon, 7 Nov 2005 16:40:09 +0100 Subject: [PATCH] [PATCH] fio: make default timeout be until we are done --- fio.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/fio.c b/fio.c index b46c01c..8085c74 100644 --- 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; -- 2.25.1