io_u: rate cleanup and spelling error
authorJens Axboe <axboe@kernel.dk>
Wed, 6 Dec 2017 19:30:20 +0000 (12:30 -0700)
committerJens Axboe <axboe@kernel.dk>
Wed, 6 Dec 2017 19:30:20 +0000 (12:30 -0700)
Fixes: 50a8ce86 ("Implement new Rate Control")
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_u.c

diff --git a/io_u.c b/io_u.c
index 7ccbd312d8d0018f57159baa05b1cf31b0583639..42d98ebfe1d6a0dc85193348a77de95667ff117f 100644 (file)
--- a/io_u.c
+++ b/io_u.c
@@ -759,11 +759,11 @@ static enum fio_ddir rate_ddir(struct thread_data *td, enum fio_ddir ddir)
                        return odir;
 
                /*
-                * Both directions are ahead of rate. sleep the min
-                * switch if necissary
+                * Both directions are ahead of rate. sleep the min,
+                * switch if necessary
                 */
                if (td->rate_next_io_time[ddir] <=
-                       td->rate_next_io_time[odir]) {
+                   td->rate_next_io_time[odir]) {
                        usec = td->rate_next_io_time[ddir] - now;
                } else {
                        usec = td->rate_next_io_time[odir] - now;