From 47dbd1de7138760f24a41cbe0e3062b7e41aa409 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Fri, 1 Jun 2012 11:14:11 +0200 Subject: [PATCH] frontend_net: report threads in use; fix XML header --- src/filter_frontend_net.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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(); -- 1.7.10.4