From: Adam Dickmeiss Date: Fri, 1 Jun 2012 09:14:11 +0000 (+0200) Subject: frontend_net: report threads in use; fix XML header X-Git-Tag: v1.3.37~3 X-Git-Url: http://git.indexdata.com/?a=commitdiff_plain;h=47dbd1de7138760f24a41cbe0e3062b7e41aa409;p=metaproxy-moved-to-github.git frontend_net: report threads in use; fix XML header --- diff --git a/src/filter_frontend_net.cpp b/src/filter_frontend_net.cpp index b9526c5..8efda29 100644 --- a/src/filter_frontend_net.cpp +++ b/src/filter_frontend_net.cpp @@ -302,7 +302,7 @@ void yf::FrontendNet::ZAssocChild::report(Z_HTTP_Request *hreq) number_total += m_p->m_duration_freq[i]; number_total += m_p->m_duration_freq[i]; - wrbuf_puts(w, "\n"); + wrbuf_puts(w, "\n"); wrbuf_puts(w, "\n"); wrbuf_printf(w, " \n", number_total); for (i = 0; m_p->m_duration_lim[i] != 0.0; i++) @@ -334,6 +334,14 @@ void yf::FrontendNet::ZAssocChild::report(Z_HTTP_Request *hreq) m_p->m_duration_total / number_total); wrbuf_puts(w, " \n"); + + int thread_busy; + int thread_total; + m_thread_pool_observer->get_thread_info(thread_busy, thread_total); + + wrbuf_printf(w, " \n", + thread_busy, thread_total); + wrbuf_puts(w, "\n"); hres->content_len = w.len();