From faa9b2b2eec0ceba71a880c5093dd3b6be221483 Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Wed, 29 Nov 2017 22:00:35 -0700 Subject: [PATCH] verify: convert hdr time to sec+nsec Use the internal values instead of converting. Signed-off-by: Jens Axboe --- verify.c | 2 +- verify.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/verify.c b/verify.c index 9612244f..2faeaad6 100644 --- 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)); diff --git a/verify.h b/verify.h index 5aae2e7e..321e6485 100644 --- 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; -- 2.25.1