diff options
author | Nick Mathewson <nickm@torproject.org> | 2017-12-21 10:48:37 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2017-12-21 10:48:37 -0500 |
commit | 79a50afa0e3dd44fc5ef80806ccda501fab5a718 (patch) | |
tree | 47b1873d2c48eb1527278fa69bc11bc6eeea8421 | |
parent | 3b08184338fd9b0b3e3bd3e5260684cd078beae0 (diff) | |
download | tor-79a50afa0e3dd44fc5ef80806ccda501fab5a718.tar.gz tor-79a50afa0e3dd44fc5ef80806ccda501fab5a718.zip |
Use monotime_coarse_absolute_msec() in destroy queue
This way it will match the insert queue in 029 and later.
-rw-r--r-- | src/or/relay.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/or/relay.c b/src/or/relay.c index 3bf740348a..29f34ca033 100644 --- a/src/or/relay.c +++ b/src/or/relay.c @@ -2417,14 +2417,11 @@ destroy_cell_queue_append(destroy_cell_queue_t *queue, circid_t circid, uint8_t reason) { - struct timeval now; - destroy_cell_t *cell = tor_malloc_zero(sizeof(destroy_cell_t)); cell->circid = circid; cell->reason = reason; - tor_gettimeofday_cached_monotonic(&now); /* Not yet used, but will be required for OOM handling. */ - cell->inserted_time = (uint32_t)tv_to_msec(&now); + cell->inserted_time = (uint32_t) monotime_coarse_absolute_msec(); TOR_SIMPLEQ_INSERT_TAIL(&queue->head, cell, next); ++queue->n; |