diff options
author | Nick Mathewson <nickm@torproject.org> | 2011-05-03 16:29:39 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2011-05-03 16:29:39 -0400 |
commit | 970715dd8f52a79bbaddfcfa5af1f11608ddacf9 (patch) | |
tree | f142e960cb94e858d525b418593045b4956f836e /src/or/microdesc.c | |
parent | 698fa0fc67118bea2ea7720455ebbdee705c8c1a (diff) | |
download | tor-970715dd8f52a79bbaddfcfa5af1f11608ddacf9.tar.gz tor-970715dd8f52a79bbaddfcfa5af1f11608ddacf9.zip |
Fix a check for when to rebuild the microdesc cache. (Backport from 0.2.3.
Diffstat (limited to 'src/or/microdesc.c')
-rw-r--r-- | src/or/microdesc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/microdesc.c b/src/or/microdesc.c index 356627700d..0ceb134a61 100644 --- a/src/or/microdesc.c +++ b/src/or/microdesc.c @@ -208,7 +208,7 @@ microdescs_add_list_to_cache(microdesc_cache_t *cache, size_t old_content_len = cache->cache_content ? cache->cache_content->size : 0; if (cache->journal_len > 16384 + old_content_len && - cache->journal_len > old_content_len * 2) { + cache->journal_len > old_content_len / 2) { microdesc_cache_rebuild(cache); } } |