From f0153948d20b30978b815d4ceef7e059d3d2779a Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Thu, 7 Jul 2011 15:35:27 +0200 Subject: [PATCH] Fix ramp time random screwup Signed-off-by: Jens Axboe --- fio.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/fio.c b/fio.c index fa30019b..48c728eb 100644 --- a/fio.c +++ b/fio.c @@ -978,11 +978,6 @@ static void reset_io_counters(struct thread_data *td) */ if (td->o.time_based || td->o.loops) td->nr_done_files = 0; - - /* - * Set the same seed to get repeatable runs - */ - td_fill_rand_seeds(td); } void reset_all_stats(struct thread_data *td) @@ -1016,6 +1011,11 @@ static void clear_io_state(struct thread_data *td) close_files(td); for_each_file(td, f, i) fio_file_clear_done(f); + + /* + * Set the same seed to get repeatable runs + */ + td_fill_rand_seeds(td); } static int exec_string(const char *string) -- 2.25.1