aboutsummaryrefslogtreecommitdiff
path: root/src/or/dns.c
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2005-06-23 07:57:43 +0000
committerRoger Dingledine <arma@torproject.org>2005-06-23 07:57:43 +0000
commit00a7a37c94e2cb788941202a1c3b824f6ebf6df0 (patch)
tree024109af8e7157d6474f02f877f411af06d501ec /src/or/dns.c
parent9808fbd8848e1153f6921e5ac313b97972432156 (diff)
downloadtor-00a7a37c94e2cb788941202a1c3b824f6ebf6df0.tar
tor-00a7a37c94e2cb788941202a1c3b824f6ebf6df0.tar.gz
we were printing the number of idle dns workers incorrectly.
svn:r4477
Diffstat (limited to 'src/or/dns.c')
-rw-r--r--src/or/dns.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/dns.c b/src/or/dns.c
index 7bda73e46..4a02e066a 100644
--- a/src/or/dns.c
+++ b/src/or/dns.c
@@ -913,7 +913,7 @@ spawn_enough_dnsworkers(void)
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);