diff options
author | Karsten Loesing <karsten.loesing@gmx.net> | 2009-05-27 17:52:46 +0200 |
---|---|---|
committer | Karsten Loesing <karsten.loesing@gmx.net> | 2009-05-27 19:13:31 +0200 |
commit | 54c97c9133ebbeea6aed9b4526b19fbc0d88377b (patch) | |
tree | 4357577684ab5acc0928b543ef88b002d325a9c3 /src/or/main.c | |
parent | bf7e5d6553acd8d8ce37e80586083620d66d0160 (diff) | |
download | tor-54c97c9133ebbeea6aed9b4526b19fbc0d88377b.tar.gz tor-54c97c9133ebbeea6aed9b4526b19fbc0d88377b.zip |
Change the way how directories that are configured with --enable-geoip-stats write geoip stats to disk.
- Write geoip stats to disk every 24 hours, not every hour.
- Remove configuration options and define reasonable defaults.
- Clear history of client requests every 24 hours (which wasn't done at
all before).
Diffstat (limited to 'src/or/main.c')
-rw-r--r-- | src/or/main.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/or/main.c b/src/or/main.c index 61e9d9f6a7..9163b8c26b 100644 --- a/src/or/main.c +++ b/src/or/main.c @@ -807,7 +807,6 @@ run_scheduled_events(time_t now) static time_t time_to_clean_caches = 0; static time_t time_to_recheck_bandwidth = 0; static time_t time_to_check_for_expired_networkstatus = 0; - static time_t time_to_dump_geoip_stats = 0; static time_t time_to_retry_dns_init = 0; or_options_t *options = get_options(); int i; @@ -935,13 +934,6 @@ run_scheduled_events(time_t now) time_to_check_for_expired_networkstatus = now + CHECK_EXPIRED_NS_INTERVAL; } - if (time_to_dump_geoip_stats < now) { -#define DUMP_GEOIP_STATS_INTERVAL (60*60); - if (time_to_dump_geoip_stats) - dump_geoip_stats(); - time_to_dump_geoip_stats = now + DUMP_GEOIP_STATS_INTERVAL; - } - /* Remove old information from rephist and the rend cache. */ if (time_to_clean_caches < now) { rep_history_clean(now - options->RephistTrackTime); |