1
0
mirror of https://github.com/apache/httpd.git synced 2025-08-08 15:02:10 +03:00

The number of times elected as well as the i/o

of the workers is useful info to show in the
manager.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@421287 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Jim Jagielski
2006-07-12 15:13:22 +00:00
parent 3e2c97f512
commit ae24222e23

View File

@@ -685,6 +685,7 @@ static int balancer_handler(request_rec *r)
"<th>Worker URL</th>" "<th>Worker URL</th>"
"<th>Route</th><th>RouteRedir</th>" "<th>Route</th><th>RouteRedir</th>"
"<th>Factor</th><th>Status</th>" "<th>Factor</th><th>Status</th>"
"<th>Elected</th><th>To</th><th>From</th>"
"</tr>\n", r); "</tr>\n", r);
worker = (proxy_worker *)balancer->workers->elts; worker = (proxy_worker *)balancer->workers->elts;
@@ -710,7 +711,11 @@ static int balancer_handler(request_rec *r)
ap_rputs("Ok", r); ap_rputs("Ok", r);
if (!PROXY_WORKER_IS_INITIALIZED(worker)) if (!PROXY_WORKER_IS_INITIALIZED(worker))
ap_rputs("-", r); ap_rputs("-", r);
ap_rputs("</td></tr>\n", r); ap_rputs("</td>", r);
ap_rprintf(r, "<td>%" APR_SIZE_T_FMT "</td>", worker->s->elected);
ap_rprintf(r, "<td>%" APR_OFF_T_FMT "</td>", worker->s->transferred);
ap_rprintf(r, "<td>%" APR_OFF_T_FMT "</td>", worker->s->read);
ap_rputs("</tr>\n", r);
++worker; ++worker;
} }