From a5737c9363912baaa21af978358fb9f42e756beb Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Tue, 29 Jun 2010 10:40:30 +0200 Subject: [PATCH] Fix startdelay option with s/m/h/d postfix Signed-off-by: Jens Axboe --- fio.h | 2 +- options.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/fio.h b/fio.h index bce81eb9..e05d95a5 100644 --- a/fio.h +++ b/fio.h @@ -208,7 +208,7 @@ struct thread_options { unsigned int thinktime_blocks; unsigned int fsync_blocks; unsigned int fdatasync_blocks; - unsigned int start_delay; + unsigned long start_delay; unsigned long long timeout; unsigned long long ramp_time; unsigned int overwrite; diff --git a/options.c b/options.c index de691eb3..92307675 100644 --- a/options.c +++ b/options.c @@ -1218,7 +1218,7 @@ static struct fio_option options[FIO_MAX_OPTS] = { }, { .name = "startdelay", - .type = FIO_OPT_INT, + .type = FIO_OPT_STR_VAL_TIME, .off1 = td_var_offset(start_delay), .help = "Only start job when this period has passed", .def = "0", -- 2.25.1