summaryrefslogtreecommitdiff
path: root/src/or/routerlist.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2005-10-19 16:21:19 +0000
committerNick Mathewson <nickm@torproject.org>2005-10-19 16:21:19 +0000
commit52eaccce44abcf9d6865cbd757169ab01d1ddc59 (patch)
treef0c1fb146b45f15bec97b2ad22f1d2a1c68d1277 /src/or/routerlist.c
parent7b8980a43ca6b095f368282224332035d60a82e2 (diff)
downloadtor-52eaccce44abcf9d6865cbd757169ab01d1ddc59.tar.gz
tor-52eaccce44abcf9d6865cbd757169ab01d1ddc59.zip
Crank down the frequency for replacing unchanged descriptors
svn:r5290
Diffstat (limited to 'src/or/routerlist.c')
-rw-r--r--src/or/routerlist.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/or/routerlist.c b/src/or/routerlist.c
index 2b62713c1b..c4b2949cd6 100644
--- a/src/or/routerlist.c
+++ b/src/or/routerlist.c
@@ -2950,6 +2950,7 @@ router_differences_are_cosmetic(routerinfo_t *r1, routerinfo_t *r2)
tor_version_as_new_as(r2->platform, "0.1.1.6-alpha"))
return 0;
+ /* r1 should be the one that was published first. */
if (r1->published_on > r2->published_on) {
routerinfo_t *ri_tmp = r2;
r2 = r1;
@@ -2989,8 +2990,8 @@ router_differences_are_cosmetic(routerinfo_t *r1, routerinfo_t *r2)
(r2->bandwidthcapacity < r1->bandwidthcapacity/2))
return 0;
- /* Did more than 6 hours pass? */
- if (r1->published_on + 6*60*60 < r2->published_on)
+ /* Did more than 12 hours pass? */
+ if (r1->published_on + 12*60*60 < r2->published_on)
return 0;
/* Did uptime fail to increase by approximately the amount we would think,