Merge branch 'master' of https://github.com/kenbarr1/fio
authorJens Axboe <axboe@kernel.dk>
Sat, 4 Jan 2020 00:15:31 +0000 (17:15 -0700)
committerJens Axboe <axboe@kernel.dk>
Sat, 4 Jan 2020 00:15:31 +0000 (17:15 -0700)
* 'master' of https://github.com/kenbarr1/fio:
  io_u: fix rate limiting to handle file wrap-around

io_u.c

diff --git a/io_u.c b/io_u.c
index b5c313356b0af7ac0da5ec6ed268e37b8010e775..4a0c725a7ec5b609c902f807699ebff987d9a81b 100644 (file)
--- a/io_u.c
+++ b/io_u.c
@@ -644,7 +644,7 @@ static enum fio_ddir rate_ddir(struct thread_data *td, enum fio_ddir ddir)
        uint64_t now;
 
        assert(ddir_rw(ddir));
-       now = utime_since_now(&td->start);
+       now = utime_since_now(&td->epoch);
 
        /*
         * if rate_next_io_time is in the past, need to catch up to rate