diff options
author | Nick Mathewson <nickm@torproject.org> | 2006-06-18 16:07:07 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2006-06-18 16:07:07 +0000 |
commit | b3c32dfcc87b730966dd336629530c8367ed6430 (patch) | |
tree | 47569b725f018639d70247abedf6c0d5d4cd7f41 | |
parent | 25526b08f0a49620e3244d79c5d945ebbf6149d0 (diff) | |
download | tor-b3c32dfcc87b730966dd336629530c8367ed6430.tar.gz tor-b3c32dfcc87b730966dd336629530c8367ed6430.zip |
Backport to 0.1.1: implement the "is this uptime change cosmetic" test properly.
svn:r6655
-rw-r--r-- | src/or/routerlist.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/routerlist.c b/src/or/routerlist.c index d6f6e07f2e..f955c18378 100644 --- a/src/or/routerlist.c +++ b/src/or/routerlist.c @@ -3775,7 +3775,7 @@ router_differences_are_cosmetic(routerinfo_t *r1, routerinfo_t *r2) * give or take 30 minutes? */ r1pub = r1->cache_info.published_on; r2pub = r2->cache_info.published_on; - if (abs(r2->uptime - (r1->uptime + (r2pub - r1pub)))) + if (abs(r2->uptime - (r1->uptime + (r2pub - r1pub))) > 30*60) return 0; /* Otherwise, the difference is cosmetic. */ |