tor  master
Data Fields
cell_ewma_s Struct Reference

Data Fields

unsigned int last_adjusted_tick
 
double cell_count
 
unsigned int is_for_p_chan: 1
 
int heap_index
 

Detailed Description

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().

Field Documentation

◆ cell_count

double cell_count

The EWMA of the cell count.

◆ heap_index

int heap_index

The position of the circuit within the OR connection's priority queue.

◆ is_for_p_chan

unsigned int is_for_p_chan

True iff this is the cell count for a circuit's previous channel.

◆ last_adjusted_tick

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.


The documentation for this struct was generated from the following file: