server: use fio_gettime() for timeout variables
authorJens Axboe <axboe@fb.com>
Mon, 5 Jan 2015 20:51:22 +0000 (13:51 -0700)
committerJens Axboe <axboe@fb.com>
Mon, 5 Jan 2015 20:51:22 +0000 (13:51 -0700)
Signed-off-by: Jens Axboe <axboe@fb.com>
server.c

index 3171979e650e38587c1db6b22b15a04efd2969a2..c2498497ef214bc28804e91d960f4e913226e0e5 100644 (file)
--- a/server.c
+++ b/server.c
@@ -333,7 +333,7 @@ static uint64_t alloc_reply(uint64_t tag, uint16_t opcode)
 
        reply = calloc(1, sizeof(*reply));
        INIT_FLIST_HEAD(&reply->list);
 
        reply = calloc(1, sizeof(*reply));
        INIT_FLIST_HEAD(&reply->list);
-       gettimeofday(&reply->tv, NULL);
+       fio_gettime(&reply->tv, NULL);
        reply->saved_tag = tag;
        reply->opcode = opcode;
 
        reply->saved_tag = tag;
        reply->opcode = opcode;