tor
master
|
Data Fields | |
unsigned int | last_adjusted_tick |
double | cell_count |
unsigned int | is_for_p_chan: 1 |
int | heap_index |
The cell_ewma_t structure keeps track of how many cells a circuit has transferred recently. It keeps an EWMA (exponentially weighted moving average) of the number of cells flushed from the circuit queue onto a connection in channel_flush_from_first_active_circuit().
double cell_count |
The EWMA of the cell count.
int heap_index |
The position of the circuit within the OR connection's priority queue.
unsigned int is_for_p_chan |
True iff this is the cell count for a circuit's previous channel.
unsigned int last_adjusted_tick |
The last 'tick' at which we recalibrated cell_count.
A cell sent at exactly the start of this tick has weight 1.0. Cells sent since the start of this tick have weight greater than 1.0; ones sent earlier have less weight.