io_u: don't add slat samples if we are in ramp time
[fio.git] / io_u.c
diff --git a/io_u.c b/io_u.c
index 46d97319fc174512fc4ca353486144c57097db31..e12382b83f3c959d03cc7c8babea40b8947d02c7 100644 (file)
--- a/io_u.c
+++ b/io_u.c
@@ -1994,7 +1994,7 @@ int io_u_queued_complete(struct thread_data *td, int min_evts)
  */
 void io_u_queued(struct thread_data *td, struct io_u *io_u)
 {
-       if (!td->o.disable_slat) {
+       if (!td->o.disable_slat && ramp_time_over(td)) {
                unsigned long slat_time;
 
                slat_time = utime_since(&io_u->start_time, &io_u->issue_time);