X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=init.c;h=9257d47c0180af0ff4635418eb4718d254297df4;hb=ab5643cb04dac549b2202231d5c6e33339b7fe7d;hp=07d1cdd31df2b1cba4f4ce8a07b3c4ed96e92353;hpb=a2e313142546aa5cb95ba7cb3708b7e06f58518c;p=fio.git diff --git a/init.c b/init.c index 07d1cdd3..9257d47c 100644 --- a/init.c +++ b/init.c @@ -833,11 +833,11 @@ static int fixup_options(struct thread_data *td) } } - if (!o->unit_base) { + if (o->unit_base == N2S_NONE) { if (td_ioengine_flagged(td, FIO_BIT_BASED)) - o->unit_base = 1; + o->unit_base = N2S_BITPERSEC; else - o->unit_base = 8; + o->unit_base = N2S_BYTEPERSEC; } #ifndef FIO_HAVE_ANY_FALLOCATE