[or-cvs] we were printing the number of idle dns workers incorrectly.

arma at seul.org arma at seul.org
Thu Jun 23 07:57:45 UTC 2005


Update of /home2/or/cvsroot/tor/src/or
In directory moria:/home/arma/work/onion/cvs/tor/src/or

Modified Files:
	dns.c 
Log Message:
we were printing the number of idle dns workers incorrectly.


Index: dns.c
===================================================================
RCS file: /home2/or/cvsroot/tor/src/or/dns.c,v
retrieving revision 1.158
retrieving revision 1.159
diff -u -d -r1.158 -r1.159
--- dns.c	11 Jun 2005 18:52:11 -0000	1.158
+++ dns.c	23 Jun 2005 07:57:43 -0000	1.159
@@ -913,7 +913,7 @@
   while (num_dnsworkers > num_dnsworkers_busy+MAX_IDLE_DNSWORKERS) { /* too many idle? */
     /* cull excess workers */
     log_fn(LOG_NOTICE,"%d of %d dnsworkers are idle. Killing one.",
-           num_dnsworkers-num_dnsworkers_needed, num_dnsworkers);
+           num_dnsworkers-num_dnsworkers_busy, num_dnsworkers);
     dnsconn = connection_get_by_type_state(CONN_TYPE_DNSWORKER, DNSWORKER_STATE_IDLE);
     tor_assert(dnsconn);
     connection_mark_for_close(dnsconn);



More information about the tor-commits mailing list