Fio 1.27.3
[fio.git] / io_u.c
diff --git a/io_u.c b/io_u.c
index e218a30f6f24da6a2cfc6134717c3d04ad6305c1..126a9a8bb3acd207993f2f047569a6c3222b89a2 100644 (file)
--- a/io_u.c
+++ b/io_u.c
@@ -661,7 +661,8 @@ static void io_u_mark_latency(struct thread_data *td, unsigned long usec)
 /*
  * Get next file to service by choosing one at random
  */
-static struct fio_file *get_next_file_rand(struct thread_data *td, enum fio_file_flags goodf,
+static struct fio_file *get_next_file_rand(struct thread_data *td,
+                                          enum fio_file_flags goodf,
                                           enum fio_file_flags badf)
 {
        struct fio_file *f;
@@ -1085,7 +1086,7 @@ void io_u_queued(struct thread_data *td, struct io_u *io_u)
                unsigned long slat_time;
 
                slat_time = utime_since(&io_u->start_time, &io_u->issue_time);
-               add_slat_sample(td, io_u->ddir, io_u->xfer_buflen, slat_time);
+               add_slat_sample(td, io_u->ddir, slat_time, io_u->xfer_buflen);
        }
 }