From: Jens Axboe Date: Thu, 30 Nov 2017 05:00:35 +0000 (-0700) Subject: verify: convert hdr time to sec+nsec X-Git-Tag: fio-3.3~50 X-Git-Url: https://git.kernel.dk/?p=fio.git;a=commitdiff_plain;h=faa9b2b2eec0ceba71a880c5093dd3b6be221483 verify: convert hdr time to sec+nsec Use the internal values instead of converting. Signed-off-by: Jens Axboe --- 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;