path: root/server.c
diff options
authorVincent Fu <>2017-03-14 14:41:26 -0400
committerVincent Fu <>2017-06-21 10:41:21 -0400
commit8b6a404cdd2c40715885e562416c3db039912773 (patch)
tree4f869d7ee45cc94ce54ba8682ff086825d5175df /server.c
parentb2fcbe01bdac01bc5d7f8ddea94f264b9f8c2003 (diff)
nanosecond: initial commit changing timeval to timespec
struct timeval has usec resolution whereas struct timespec has nsec resolution. This commit changes several dozen instances of struct timeval to struct timespec. All of the output is unchanged. The ticks to nsec conversion in this patch is broken but fixed in a later patch.
Diffstat (limited to 'server.c')
1 files changed, 1 insertions, 1 deletions
diff --git a/server.c b/server.c
index 8a5e75d..017ab13 100644
--- a/server.c
+++ b/server.c
@@ -438,7 +438,7 @@ static uint64_t alloc_reply(uint64_t tag, uint16_t opcode)
reply = calloc(1, sizeof(*reply));
- fio_gettime(&reply->tv, NULL);
+ fio_gettime(&reply->ts, NULL);
reply->saved_tag = tag;
reply->opcode = opcode;