options: fix 'unit_base' being of the wrong type
authorJens Axboe <axboe@kernel.dk>
Sat, 24 Nov 2018 22:10:39 +0000 (15:10 -0700)
committerJens Axboe <axboe@kernel.dk>
Sat, 24 Nov 2018 22:10:39 +0000 (15:10 -0700)
Fixes: https://github.com/axboe/fio/issues/717
Signed-off-by: Jens Axboe <axboe@kernel.dk>
options.c

index 98187def98fbe842e90ae6d4a85a9fb3f358fd10..cf087edd54b44f7b412477c067d94f07ca77a601 100644 (file)
--- a/options.c
+++ b/options.c
@@ -4551,7 +4551,7 @@ struct fio_option fio_options[FIO_MAX_OPTS] = {
        {
                .name   = "unit_base",
                .lname  = "Unit for quantities of data (Bits or Bytes)",
        {
                .name   = "unit_base",
                .lname  = "Unit for quantities of data (Bits or Bytes)",
-               .type   = FIO_OPT_INT,
+               .type   = FIO_OPT_STR,
                .off1   = offsetof(struct thread_options, unit_base),
                .prio   = 1,
                .posval = {
                .off1   = offsetof(struct thread_options, unit_base),
                .prio   = 1,
                .posval = {