[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [tor/master] In 0.3.3, we use timestamps, not absolute milliseconds.
commit 1eeb505e6f08591c39e0a000efab3948ef1ef5b5
Author: Nick Mathewson <nickm@xxxxxxxxxxxxxx>
Date: Thu Dec 21 10:57:45 2017 -0500
In 0.3.3, we use timestamps, not absolute milliseconds.
---
src/or/or.h | 3 ++-
src/or/relay.c | 2 +-
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/src/or/or.h b/src/or/or.h
index 99cf15289..2617d2d87 100644
--- a/src/or/or.h
+++ b/src/or/or.h
@@ -1182,7 +1182,8 @@ typedef struct cell_queue_t {
typedef struct destroy_cell_t {
TOR_SIMPLEQ_ENTRY(destroy_cell_t) next;
circid_t circid;
- uint32_t inserted_time; /** Timestamp when this was queued. */
+ uint32_t inserted_timestamp; /**< Time (in timestamp units) when this cell
+ * was inserted */
uint8_t reason;
} destroy_cell_t;
diff --git a/src/or/relay.c b/src/or/relay.c
index 8ef66f03c..ac2a98e12 100644
--- a/src/or/relay.c
+++ b/src/or/relay.c
@@ -2565,7 +2565,7 @@ destroy_cell_queue_append(destroy_cell_queue_t *queue,
cell->circid = circid;
cell->reason = reason;
/* Not yet used, but will be required for OOM handling. */
- cell->inserted_time = (uint32_t) monotime_coarse_absolute_msec();
+ cell->inserted_timestamp = monotime_coarse_get_stamp();
TOR_SIMPLEQ_INSERT_TAIL(&queue->head, cell, next);
++queue->n;
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits