diff options
author | Roger Dingledine <arma@torproject.org> | 2005-11-23 07:30:44 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2005-11-23 07:30:44 +0000 |
commit | 0118a236a4fa3b3cbc5d3869e7ddc65f9a2480e3 (patch) | |
tree | 0d0296c272a0b210656cc3553ab113ff9d596731 /src/or | |
parent | eb0021b06e9cab9a0f15dfcc4d31356eaa0f0957 (diff) | |
download | tor-0118a236a4fa3b3cbc5d3869e7ddc65f9a2480e3.tar tor-0118a236a4fa3b3cbc5d3869e7ddc65f9a2480e3.tar.gz |
comment that scary-looking function.
svn:r5447
Diffstat (limited to 'src/or')
-rw-r--r-- | src/or/routerlist.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/or/routerlist.c b/src/or/routerlist.c index 13297c9ec..241b9e76f 100644 --- a/src/or/routerlist.c +++ b/src/or/routerlist.c @@ -1152,6 +1152,14 @@ dump_routerlist_mem_usage(int severity) smartlist_len(routerlist->old_routers), U64_PRINTF_ARG(olddescs)); } +/** Return non-zero if we have a lot of extra descriptors in our + * routerlist, and should get rid of some of them. Else return 0. + * + * We should be careful to not return true too eagerly, since we + * could churn. By using "+1" below, we make sure this function + * only returns true at most every smartlist_len(rl-\>routers) + * new descriptors. + */ static INLINE int routerlist_is_overfull(routerlist_t *rl) { |