diff options
author | Nick Mathewson <nickm@torproject.org> | 2004-11-21 05:14:46 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2004-11-21 05:14:46 +0000 |
commit | bb18d4238f292648e75c6fd50bdd434ab193fa71 (patch) | |
tree | eb01e782474ed76a89c38c7818ad03f2fa5e5e79 /src/or/main.c | |
parent | bdb61f2a044853d6459d642f40b7c59112951cdb (diff) | |
download | tor-bb18d4238f292648e75c6fd50bdd434ab193fa71.tar.gz tor-bb18d4238f292648e75c6fd50bdd434ab193fa71.zip |
Dont keep rephist info for routers that havent had activity for 24 hours.
svn:r2926
Diffstat (limited to 'src/or/main.c')
-rw-r--r-- | src/or/main.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/or/main.c b/src/or/main.c index cc8379d0c8..767f6be0ad 100644 --- a/src/or/main.c +++ b/src/or/main.c @@ -588,6 +588,9 @@ static void run_scheduled_events(time_t now) { if (time_to_fetch_running_routers < now + options->StatusFetchPeriod) { time_to_fetch_running_routers = now + options->StatusFetchPeriod; } + + /* Also, take this chance to remove old information from rephist. */ + rep_history_clean(now-24*60*60); } if (time_to_fetch_running_routers < now) { |