From: Jens Axboe Date: Tue, 29 Jun 2010 08:40:30 +0000 (+0200) Subject: Fix startdelay option with s/m/h/d postfix X-Git-Tag: fio-1.41.6~3 X-Git-Url: https://git.kernel.dk/?p=fio.git;a=commitdiff_plain;h=a5737c9363912baaa21af978358fb9f42e756beb Fix startdelay option with s/m/h/d postfix Signed-off-by: Jens Axboe --- 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",