diff options
author | Nick Mathewson <nickm@torproject.org> | 2017-03-28 19:55:18 +0200 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2017-03-28 19:55:18 +0200 |
commit | 208c2a5c74e5ae4e53a9c6555f5519816826d490 (patch) | |
tree | d7b01b05afdeb890714c77391c7705a8e0727b23 /src/or/microdesc.c | |
parent | 4d5b46aad91daeafd9c3f9d703f3b0b7b47ad472 (diff) | |
parent | 003a7fe2a390615df9f700193ab0fe52fa4ade93 (diff) | |
download | tor-208c2a5c74e5ae4e53a9c6555f5519816826d490.tar.gz tor-208c2a5c74e5ae4e53a9c6555f5519816826d490.zip |
Merge branch 'spooling_squashed'
Diffstat (limited to 'src/or/microdesc.c')
-rw-r--r-- | src/or/microdesc.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/or/microdesc.c b/src/or/microdesc.c index 972cf9f11a..a4e6b409c4 100644 --- a/src/or/microdesc.c +++ b/src/or/microdesc.c @@ -804,18 +804,6 @@ microdesc_cache_lookup_by_digest256(microdesc_cache_t *cache, const char *d) return md; } -/** Return the mean size of decriptors added to <b>cache</b> since it was last - * cleared. Used to estimate the size of large downloads. */ -size_t -microdesc_average_size(microdesc_cache_t *cache) -{ - if (!cache) - cache = get_microdesc_cache(); - if (!cache->n_seen) - return 512; - return (size_t)(cache->total_len_seen / cache->n_seen); -} - /** Return a smartlist of all the sha256 digest of the microdescriptors that * are listed in <b>ns</b> but not present in <b>cache</b>. Returns pointers * to internals of <b>ns</b>; you should not free the members of the resulting |