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

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



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);