diff options
author | Karsten Loesing <karsten.loesing@gmx.net> | 2009-07-05 20:48:16 +0200 |
---|---|---|
committer | Karsten Loesing <karsten.loesing@gmx.net> | 2009-07-05 20:48:16 +0200 |
commit | c0b6cb132baaf9cf259bfb09e14c1128d7abc9d6 (patch) | |
tree | c3fdbed1a09dcc86fbcef74d16bc665e7ee05def /src/or/router.c | |
parent | 4d6af73db88e409764f43fc6cdaa432d667becf3 (diff) | |
download | tor-c0b6cb132baaf9cf259bfb09e14c1128d7abc9d6.tar.gz tor-c0b6cb132baaf9cf259bfb09e14c1128d7abc9d6.zip |
If configured, write entry-node statistics to disk periodically.
Diffstat (limited to 'src/or/router.c')
-rw-r--r-- | src/or/router.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/or/router.c b/src/or/router.c index cb73e378c0..bdea4fa764 100644 --- a/src/or/router.c +++ b/src/or/router.c @@ -1919,6 +1919,9 @@ extrainfo_get_client_geoip_summary(time_t now) #ifdef ENABLE_GEOIP_STATS geoip_purge_interval = DIR_RECORD_USAGE_RETAIN_IPS; #endif +#ifdef ENABLE_ENTRY_STATS + geoip_purge_interval = ENTRY_RECORD_USAGE_RETAIN_IPS; +#endif if (now > last_purged_at+geoip_purge_interval) { /* (Note that this also discards items in the client history with * action GEOIP_CLIENT_NETWORKSTATUS{_V2}, which doesn't matter |