Fix broken completion latency numbers
authorJens Axboe <jens.axboe@oracle.com>
Fri, 10 Jul 2009 06:47:57 +0000 (08:47 +0200)
committerJens Axboe <jens.axboe@oracle.com>
Fri, 10 Jul 2009 06:47:57 +0000 (08:47 +0200)
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
io_u.c

diff --git a/io_u.c b/io_u.c
index 6549804..9668395 100644 (file)
--- a/io_u.c
+++ b/io_u.c
@@ -999,7 +999,7 @@ static void io_completed(struct thread_data *td, struct io_u *io_u,
                                                        &icd->time);
 
                        if (!td->o.disable_clat) {
-                               add_clat_sample(td, idx, usec, bytes);
+                               add_clat_sample(td, idx, lusec, bytes);
                                io_u_mark_latency(td, lusec);
                        }
                        if (!td->o.disable_bw)