Fix timeout on 64-bit BE archs
authorJens Axboe <jens.axboe@oracle.com>
Wed, 16 May 2007 06:59:27 +0000 (08:59 +0200)
committerJens Axboe <jens.axboe@oracle.com>
Wed, 16 May 2007 06:59:27 +0000 (08:59 +0200)
We stored the timeout in an unsigned long long pointer, but
the value was really unsigned long.

fio.h

diff --git a/fio.h b/fio.h
index bcd188b37808b8bc2f9e76c32d99a0a733803ce0..6ee0d6aa2d1ef9bc3c1ecb807116b7bf77d691ec 100644 (file)
--- a/fio.h
+++ b/fio.h
@@ -393,7 +393,7 @@ struct thread_options {
        unsigned int thinktime_blocks;
        unsigned int fsync_blocks;
        unsigned int start_delay;
-       unsigned long timeout;
+       unsigned long long timeout;
        unsigned int overwrite;
        unsigned int bw_avg_time;
        unsigned int loops;