options: allow separate values for max_latency
[fio.git] / init.c
diff --git a/init.c b/init.c
index eea6e54692b177036dce001134f8ed1baeb62ca8..e8530fec2c4da8a961692eaed7a046a357dab0e9 100644 (file)
--- a/init.c
+++ b/init.c
@@ -961,7 +961,9 @@ static int fixup_options(struct thread_data *td)
        /*
         * Fix these up to be nsec internally
         */
-       o->max_latency *= 1000ULL;
+       for_each_rw_ddir(ddir)
+               o->max_latency[ddir] *= 1000ULL;
+
        o->latency_target *= 1000ULL;
 
        return ret;