summaryrefslogtreecommitdiff
path: root/io_u.c
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2017-12-06 12:30:20 -0700
committerJens Axboe <axboe@kernel.dk>2017-12-06 12:30:20 -0700
commit395feabb53806d5cff2e0b73b6c94048f05b5aae (patch)
treefbecf8f76d84fcfce7d84787f31de5bfd2feb83c /io_u.c
parent1a9bf8146d9842d268bcb01f4286325a8cfccc21 (diff)
downloadfio-395feabb53806d5cff2e0b73b6c94048f05b5aae.tar.gz
fio-395feabb53806d5cff2e0b73b6c94048f05b5aae.tar.bz2
io_u: rate cleanup and spelling error
Fixes: 50a8ce86 ("Implement new Rate Control") Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'io_u.c')
-rw-r--r--io_u.c6
1 files 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;