mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-24 04:13:28 +01:00
In 0.3.3, we use timestamps, not absolute milliseconds.
This commit is contained in:
parent
b8a3602b2a
commit
1eeb505e6f
@ -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;
|
||||
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user