cell_ewma_t Struct Reference

#include <or.h>


Data Fields

unsigned last_adjusted_tick
double cell_count
unsigned int is_for_p_conn: 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 connection_or_flush_from_first_active_circuit().

Field Documentation

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.

Referenced by init_circuit_base(), or_circuit_new(), and scale_single_cell_ewma().

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

Referenced by assert_active_circuits_ok(), cell_ewma_to_circuit(), init_circuit_base(), and or_circuit_new().

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

Referenced by add_cell_ewma_to_conn(), assert_active_circuits_ok(), init_circuit_base(), or_circuit_new(), and remove_cell_ewma_from_conn().


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

Generated on Tue May 25 00:31:07 2010 for tor by  doxygen 1.5.6