[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[or-cvs] Note a magic 2 that probably should be replaced now that we...



Update of /home/or/cvsroot/tor/src/or
In directory moria:/tmp/cvs-serv17962

Modified Files:
	routerlist.c 
Log Message:
Note a magic 2 that probably should be replaced now that we have more dirservers

Index: routerlist.c
===================================================================
RCS file: /home/or/cvsroot/tor/src/or/routerlist.c,v
retrieving revision 1.466
retrieving revision 1.467
diff -u -p -d -r1.466 -r1.467
--- routerlist.c	22 Mar 2006 06:22:12 -0000	1.466
+++ routerlist.c	23 Mar 2006 20:21:54 -0000	1.467
@@ -3466,6 +3466,9 @@ update_router_descriptor_client_download
              "Called router_descriptor_client_downloads() on a mirror?");
   }
 
+  /* XXX here's another magic 2 that probably should be replaced
+   * by <= smartlist_len(trusted_dir_servers)/2
+   * or by a function returning same.  -- weasel */
   if (networkstatus_list && smartlist_len(networkstatus_list) < 2) {
     log_info(LD_DIR,
              "Not enough networkstatus documents to launch requests.");