Missed int to pointer conversion check for ->ratemin
authorJens Axboe <jens.axboe@oracle.com>
Tue, 9 Jun 2009 10:58:37 +0000 (12:58 +0200)
committerJens Axboe <jens.axboe@oracle.com>
Tue, 9 Jun 2009 10:58:37 +0000 (12:58 +0200)
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
fio.c

diff --git a/fio.c b/fio.c
index ebe06d6..70d4b2b 100644 (file)
--- a/fio.c
+++ b/fio.c
@@ -1041,7 +1041,7 @@ static void *thread_main(void *data)
                memcpy(&td->ts.stat_sample_time, &td->start, sizeof(td->start));
                memcpy(&td->tv_cache, &td->start, sizeof(td->start));
 
-               if (td->o.ratemin)
+               if (td->o.ratemin[0] || td->o.ratemin[1])
                        memcpy(&td->lastrate, &td->ts.stat_sample_time,
                                                        sizeof(td->lastrate));