verify: convert hdr time to sec+nsec
authorJens Axboe <axboe@kernel.dk>
Thu, 30 Nov 2017 05:00:35 +0000 (22:00 -0700)
committerJens Axboe <axboe@kernel.dk>
Thu, 30 Nov 2017 05:00:35 +0000 (22:00 -0700)
Use the internal values instead of converting.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
verify.c
verify.h

index 9612244..2faeaad 100644 (file)
--- a/verify.c
+++ b/verify.c
@@ -1164,7 +1164,7 @@ static void __fill_hdr(struct thread_data *td, struct io_u *io_u,
        hdr->rand_seed = rand_seed;
        hdr->offset = io_u->offset + header_num * td->o.verify_interval;
        hdr->time_sec = io_u->start_time.tv_sec;
-       hdr->time_usec = io_u->start_time.tv_nsec / 1000;
+       hdr->time_nsec = io_u->start_time.tv_nsec;
        hdr->thread = td->thread_number;
        hdr->numberio = io_u->numberio;
        hdr->crc32 = fio_crc32c(p, offsetof(struct verify_header, crc32));
index 5aae2e7..321e648 100644 (file)
--- a/verify.h
+++ b/verify.h
@@ -43,7 +43,7 @@ struct verify_header {
        uint64_t rand_seed;
        uint64_t offset;
        uint32_t time_sec;
-       uint32_t time_usec;
+       uint32_t time_nsec;
        uint16_t thread;
        uint16_t numberio;
        uint32_t crc32;