aboutsummaryrefslogtreecommitdiff
path: root/src/or/directory.c
diff options
context:
space:
mode:
authorKarsten Loesing <karsten.loesing@gmx.net>2009-07-15 16:32:40 +0200
committerKarsten Loesing <karsten.loesing@gmx.net>2009-07-15 16:32:40 +0200
commit8c496d1660c326c0bc2bd5c505255d5ec3b653ec (patch)
tree4cab68d08f3ae7f4b9dbc8c12be028b0139791a1 /src/or/directory.c
parent416940d93bac49f78b57a2cf561bd324d75b391f (diff)
downloadtor-8c496d1660c326c0bc2bd5c505255d5ec3b653ec.tar
tor-8c496d1660c326c0bc2bd5c505255d5ec3b653ec.tar.gz
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/directory.c')
-rw-r--r--src/or/directory.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/directory.c b/src/or/directory.c
index c6faeae2e..976c08c19 100644
--- a/src/or/directory.c
+++ b/src/or/directory.c
@@ -2562,7 +2562,7 @@ directory_handle_command_get(dir_connection_t *conn, const char *headers,
goto done;
}
-#ifdef ENABLE_GEOIP_STATS
+#ifdef ENABLE_DIRREQ_STATS
{
struct in_addr in;
if (tor_inet_aton((TO_CONN(conn))->address, &in)) {
@@ -3210,7 +3210,7 @@ connection_dir_finished_flushing(dir_connection_t *conn)
tor_assert(conn);
tor_assert(conn->_base.type == CONN_TYPE_DIR);
-#ifdef ENABLE_GEOIP_STATS
+#ifdef ENABLE_DIRREQ_STATS
/* Note that we have finished writing the directory response. For direct
* connections this means we're done, for tunneled connections its only
* an intermediate step. */