diff options
author | Karsten Loesing <karsten.loesing@gmx.net> | 2009-07-15 16:32:40 +0200 |
---|---|---|
committer | Karsten Loesing <karsten.loesing@gmx.net> | 2009-07-15 16:32:40 +0200 |
commit | 8c496d1660c326c0bc2bd5c505255d5ec3b653ec (patch) | |
tree | 4cab68d08f3ae7f4b9dbc8c12be028b0139791a1 /src/or/connection_edge.c | |
parent | 416940d93bac49f78b57a2cf561bd324d75b391f (diff) | |
download | tor-8c496d1660c326c0bc2bd5c505255d5ec3b653ec.tar.gz tor-8c496d1660c326c0bc2bd5c505255d5ec3b653ec.zip |
Some tweaks to statistics.
Changes to directory request statistics:
- Rename GEOIP statistics to DIRREQ statistics, because they now include
more than only GeoIP-based statistics, whereas other statistics are
GeoIP-dependent, too.
- Rename output file from geoip-stats to dirreq-stats.
- Add new config option DirReqStatistics that is required to measure
directory request statistics.
- Clean up ChangeLog.
Also ensure that entry guards statistics have access to a local GeoIP
database.
Diffstat (limited to 'src/or/connection_edge.c')
-rw-r--r-- | src/or/connection_edge.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/connection_edge.c b/src/or/connection_edge.c index f2b499fd6c..7a3d0a55be 100644 --- a/src/or/connection_edge.c +++ b/src/or/connection_edge.c @@ -2551,7 +2551,7 @@ connection_exit_begin_conn(cell_t *cell, circuit_t *circ) log_debug(LD_EXIT,"Creating new exit connection."); n_stream = edge_connection_new(CONN_TYPE_EXIT, AF_INET); -#ifdef ENABLE_GEOIP_STATS +#ifdef ENABLE_DIRREQ_STATS /* Remember the tunneled request ID in the new edge connection, so that * we can measure download times. */ TO_CONN(n_stream)->dirreq_id = circ->dirreq_id; @@ -2792,7 +2792,7 @@ connection_exit_connect_dir(edge_connection_t *exitconn) dirconn->_base.purpose = DIR_PURPOSE_SERVER; dirconn->_base.state = DIR_CONN_STATE_SERVER_COMMAND_WAIT; -#ifdef ENABLE_GEOIP_STATS +#ifdef ENABLE_DIRREQ_STATS /* Note that the new dir conn belongs to the same tunneled request as * the edge conn, so that we can measure download times. */ TO_CONN(dirconn)->dirreq_id = TO_CONN(exitconn)->dirreq_id; |