From b3c32dfcc87b730966dd336629530c8367ed6430 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Sun, 18 Jun 2006 16:07:07 +0000 Subject: Backport to 0.1.1: implement the "is this uptime change cosmetic" test properly. svn:r6655 --- src/or/routerlist.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. */ -- cgit v1.2.3-54-g00ecf