projects
/
metaproxy-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
5ea0250
)
frontend_net: report threads in use; fix XML header
author
Adam Dickmeiss
<adam@indexdata.dk>
Fri, 1 Jun 2012 09:14:11 +0000
(11:14 +0200)
committer
Adam Dickmeiss
<adam@indexdata.dk>
Fri, 1 Jun 2012 09:14:11 +0000
(11:14 +0200)
src/filter_frontend_net.cpp
patch
|
blob
|
history
diff --git
a/src/filter_frontend_net.cpp
b/src/filter_frontend_net.cpp
index
b9526c5
..
8efda29
100644
(file)
--- 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];
number_total += m_p->m_duration_freq[i];
number_total += m_p->m_duration_freq[i];
- wrbuf_puts(w, "<?xml version=\"1.0\">\n");
+ wrbuf_puts(w, "<?xml version=\"1.0\"?>\n");
wrbuf_puts(w, "<frontend_net>\n");
wrbuf_printf(w, " <responses frequency=\"%d\">\n", number_total);
for (i = 0; m_p->m_duration_lim[i] != 0.0; i++)
wrbuf_puts(w, "<frontend_net>\n");
wrbuf_printf(w, " <responses frequency=\"%d\">\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, " </responses>\n");
m_p->m_duration_total / number_total);
wrbuf_puts(w, " </responses>\n");
+
+ int thread_busy;
+ int thread_total;
+ m_thread_pool_observer->get_thread_info(thread_busy, thread_total);
+
+ wrbuf_printf(w, " <thread_info busy=\"%d\" total=\"%d\"/>\n",
+ thread_busy, thread_total);
+
wrbuf_puts(w, "</frontend_net>\n");
hres->content_len = w.len();
wrbuf_puts(w, "</frontend_net>\n");
hres->content_len = w.len();