Fix startdelay option with s/m/h/d postfix
authorJens Axboe <jaxboe@fusionio.com>
Tue, 29 Jun 2010 08:40:30 +0000 (10:40 +0200)
committerJens Axboe <jaxboe@fusionio.com>
Tue, 29 Jun 2010 08:40:30 +0000 (10:40 +0200)
Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
fio.h
options.c

diff --git a/fio.h b/fio.h
index bce81eb9e05e89dfdf41d7024552a121552d7d0b..e05d95a53175bb425f747891b0dfb707e015f1e7 100644 (file)
--- 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;
index de691eb32144ef0468341639ef5fc79aab0d441c..923076752b6f6c03b979e52682c5de3c4dbf518f 100644 (file)
--- 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",