]> granicus.if.org Git - pdns/commitdiff
fix up confusing message about starting up another distributor thread
authorBert Hubert <bert.hubert@netherlabs.nl>
Sun, 9 Jan 2011 08:37:28 +0000 (08:37 +0000)
committerBert Hubert <bert.hubert@netherlabs.nl>
Sun, 9 Jan 2011 08:37:28 +0000 (08:37 +0000)
git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@1841 d19b8d6e-7fed-0310-83ef-9ca221ded41b

pdns/distributor.hh

index 939ea3f4b0588c585c93da359f8d3f76dfb962e5..cd1f4e45ec3b6c2ed4deafb87117327867d1340b 100644 (file)
@@ -285,7 +285,7 @@ template<class Answer, class Question, class Backend>int Distributor<Answer,Ques
 
   if(Backend::numRunning() < d_num_threads+2 && time(0)-d_last_started>5) { 
     d_last_started=time(0);
-    L<<"Distributor misses a thread ("<<Backend::numRunning()<<"<"<<d_num_threads<<"), spawning new one"<<endl;
+    L<<"Distributor misses a thread ("<<Backend::numRunning()<<"<"<<d_num_threads + 2<<"), spawning new one"<<endl;
     pthread_t tid;
     pthread_create(&tid,0,&makeThread,static_cast<void *>(this));
   }