init: fix unit of latency_window
authorSong Liu <songliubraving@fb.com>
Mon, 18 May 2020 05:46:21 +0000 (22:46 -0700)
committerSong Liu <songliubraving@fb.com>
Tue, 19 May 2020 20:19:59 +0000 (13:19 -0700)
latency_window has unit of microseconds, and is compared against
usec_window. Therefore, there is no need to fix it up to nanoseconds.

Signed-off-by: Song Liu <songliubraving@fb.com>
init.c

diff --git a/init.c b/init.c
index b5315334c6ba9f6edc8aad0d477c25f7eff4ceaa..0431f700a50d5d68bd4c3242e740dae0bf4a4d65 100644 (file)
--- a/init.c
+++ b/init.c
@@ -956,7 +956,6 @@ static int fixup_options(struct thread_data *td)
         */
        o->max_latency *= 1000ULL;
        o->latency_target *= 1000ULL;
-       o->latency_window *= 1000ULL;
 
        return ret;
 }