or_history_t Struct Reference


Data Fields

time_t since
time_t changed
unsigned long n_conn_ok
unsigned long n_conn_fail
unsigned long uptime
unsigned long downtime
time_t up_since
time_t down_since
unsigned long weighted_run_length
time_t start_of_run
double total_run_weights
time_t start_of_downtime
unsigned long weighted_uptime
unsigned long total_weighted_time
digestmap_t * link_history_map

Detailed Description

History of an OR.

Field Documentation

When did we start tracking this OR?

Referenced by get_or_history().

unsigned long or_history_t::n_conn_ok

How many times did we successfully connect?

Referenced by rep_hist_dump_stats(), and rep_hist_note_connect_succeeded().

How many times did we try to connect and fail?

Referenced by rep_hist_dump_stats(), and rep_hist_note_connect_failed().

unsigned long or_history_t::uptime

How many seconds have we been connected to this OR before 'up_since'?

Referenced by mark_or_down(), rep_hist_dump_stats(), and update_or_history().

unsigned long or_history_t::downtime

How many seconds have we been unable to connect to this OR before 'down_since'?

Referenced by mark_or_up(), rep_hist_dump_stats(), and update_or_history().

If nonzero, we have been connected since this time.

Referenced by mark_or_down(), mark_or_up(), and update_or_history().

If nonzero, we have been unable to connect since this time.

Referenced by mark_or_down(), mark_or_up(), and update_or_history().

Map from hex OR2 identity digest to a link_history_t for the link from this OR to OR2.

Referenced by free_or_history(), get_link_history(), get_or_history(), rep_hist_dump_stats(), and rep_history_clean().


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

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