diff options
author | Nick Mathewson <nickm@torproject.org> | 2007-10-12 21:33:35 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2007-10-12 21:33:35 +0000 |
commit | a009014eb35bd679dab2c3087285e1734e5772e4 (patch) | |
tree | 8a641852d32cfd906f88ca683b763efa24a5e812 | |
parent | 641a1d7cb989a924af93a30a0b07a83bf6c7e426 (diff) | |
download | tor-a009014eb35bd679dab2c3087285e1734e5772e4.tar.gz tor-a009014eb35bd679dab2c3087285e1734e5772e4.zip |
r15730@catbus: nickm | 2007-10-12 16:47:47 -0400
Note a way to make routerlist_remove_old_routrs get called way less.
svn:r11902
-rw-r--r-- | src/or/routerlist.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/or/routerlist.c b/src/or/routerlist.c index 5dc0af6666..c974adb0f3 100644 --- a/src/or/routerlist.c +++ b/src/or/routerlist.c @@ -2860,7 +2860,6 @@ routerlist_remove_old_cached_routers_with_id(time_t cutoff, int lo, int hi, void routerlist_remove_old_routers(void) { - /* XXXX020 call me less often */ int i, hi=-1; const char *cur_id = NULL; time_t now = time(NULL); @@ -4045,6 +4044,8 @@ update_router_have_minimum_dir_info(void) res = 0; goto done; } + /*XXXX020 remove this call. routerlist_remove_old_routers shows up in some + * profiles, and this is the biggest caller of that function. */ routerlist_remove_old_routers(); networkstatus_list_clean(now); |