summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2006-04-03 06:37:35 +0000
committerRoger Dingledine <arma@torproject.org>2006-04-03 06:37:35 +0000
commita324871603cf9b8bac8b46e2058156ef9acb51c7 (patch)
tree1fbf6370ae4c43c6356995070f57651878d346a1
parent4b6ff2b084080acd359a81e5a17a3a238bed0b69 (diff)
downloadtor-a324871603cf9b8bac8b46e2058156ef9acb51c7.tar.gz
tor-a324871603cf9b8bac8b46e2058156ef9acb51c7.zip
phrase the threshold comparison in the way we've been
phrasing it. these are equivalent, right? svn:r6309
-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 59911dca23..8bb42618eb 100644
--- a/src/or/routerlist.c
+++ b/src/or/routerlist.c
@@ -2874,7 +2874,7 @@ routerstatus_list_update_from_networkstatus(time_t now)
n_trusted = smartlist_len(trusted_dir_servers);
n_statuses = smartlist_len(networkstatus_list);
- if (n_statuses < (n_trusted/2)+1) {
+ if (n_statuses <= n_trusted/2) {
/* Not enough statuses to adjust status. */
log_notice(LD_DIR,
"Not enough statuses to update router status list. (%d/%d)",