summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2006-06-18 16:07:07 +0000
committerNick Mathewson <nickm@torproject.org>2006-06-18 16:07:07 +0000
commitb3c32dfcc87b730966dd336629530c8367ed6430 (patch)
tree47569b725f018639d70247abedf6c0d5d4cd7f41
parent25526b08f0a49620e3244d79c5d945ebbf6149d0 (diff)
downloadtor-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.c2
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. */