summaryrefslogtreecommitdiff
path: root/io_u.c
diff options
context:
space:
mode:
authorErwan Velu <erwan@redhat.com>2017-10-03 09:49:24 +0200
committerJens Axboe <axboe@kernel.dk>2017-10-03 09:06:33 -0600
commitb5407f8bee92692740cdbeca60ab1ba8b86a9b86 (patch)
tree87c5da7bfdff9a46145aeeffa4ed6e6b28ae2504 /io_u.c
parentc16035aadd600a3a4c4b241339e3d3099f56c4b2 (diff)
downloadfio-b5407f8bee92692740cdbeca60ab1ba8b86a9b86.tar.gz
fio-b5407f8bee92692740cdbeca60ab1ba8b86a9b86.tar.bz2
io_u: Converting usec from long to uint64_t
'rate_next_io_time' structure and usec_sleep() are manipulating uint64_t. It's more consistent having usec being expressed in the same stdint unit. Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'io_u.c')
-rw-r--r--io_u.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/io_u.c b/io_u.c
index e98cd318..58c23202 100644
--- a/io_u.c
+++ b/io_u.c
@@ -662,7 +662,7 @@ int io_u_quiesce(struct thread_data *td)
static enum fio_ddir rate_ddir(struct thread_data *td, enum fio_ddir ddir)
{
enum fio_ddir odir = ddir ^ 1;
- long usec;
+ uint64_t usec;
uint64_t now;
assert(ddir_rw(ddir));