diff options
author | Nick Mathewson <nickm@torproject.org> | 2016-07-08 15:24:21 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2016-07-19 11:40:46 +0200 |
commit | c7558c906a1069308f8f4519b8c93245fbca9efd (patch) | |
tree | e0d22329d4f9ef7d1abb24767bf257162dc29c92 /src/or/relay.c | |
parent | 6a2002fc091506f576934bbf50e7b8644b43bf4c (diff) | |
download | tor-c7558c906a1069308f8f4519b8c93245fbca9efd.tar.gz tor-c7558c906a1069308f8f4519b8c93245fbca9efd.zip |
Use coarse monotonic timer instead of cached monotonized libevent time.
Diffstat (limited to 'src/or/relay.c')
-rw-r--r-- | src/or/relay.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/or/relay.c b/src/or/relay.c index fb8c8e74d6..a815a55d69 100644 --- a/src/or/relay.c +++ b/src/or/relay.c @@ -2320,14 +2320,12 @@ cell_queue_append_packed_copy(circuit_t *circ, cell_queue_t *queue, int exitward, const cell_t *cell, int wide_circ_ids, int use_stats) { - struct timeval now; packed_cell_t *copy = packed_cell_copy(cell, wide_circ_ids); (void)circ; (void)exitward; (void)use_stats; - tor_gettimeofday_cached_monotonic(&now); - copy->inserted_time = (uint32_t)tv_to_msec(&now); + copy->inserted_time = (uint32_t) monotime_coarse_absolute_msec(); cell_queue_append(queue, copy); } |