From 395feabb53806d5cff2e0b73b6c94048f05b5aae Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Wed, 6 Dec 2017 12:30:20 -0700 Subject: [PATCH] io_u: rate cleanup and spelling error Fixes: 50a8ce86 ("Implement new Rate Control") Signed-off-by: Jens Axboe --- io_u.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/io_u.c b/io_u.c index 7ccbd312..42d98ebf 100644 --- 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; -- 2.25.1