summaryrefslogtreecommitdiff
path: root/src/or
diff options
context:
space:
mode:
Diffstat (limited to 'src/or')
-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. */