]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Merge r421287 from trunk:
authorJim Jagielski <jim@apache.org>
Wed, 30 Aug 2006 17:51:43 +0000 (17:51 +0000)
committerJim Jagielski <jim@apache.org>
Wed, 30 Aug 2006 17:51:43 +0000 (17:51 +0000)
The number of times elected as well as the i/o
of the workers is useful info to show in the
manager.

Reviewed by: jim

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x@438564 13f79535-47bb-0310-9956-ffa450edef68

modules/proxy/mod_proxy_balancer.c

index d06dad46034e0582d89890b82a8f426dc434d74b..e77ecb7bc59cc277a8cea9b9ddeb89df210e1672 100644 (file)
@@ -664,6 +664,7 @@ static int balancer_handler(request_rec *r)
                 "<th>Worker URL</th>"
                 "<th>Route</th><th>RouteRedir</th>"
                 "<th>Factor</th><th>Status</th>"
+                "<th>Elected</th><th>To</th><th>From</th>"
                 "</tr>\n", r);
 
             worker = (proxy_worker *)balancer->workers->elts;
@@ -689,7 +690,11 @@ static int balancer_handler(request_rec *r)
                     ap_rputs("Ok", r);
                 if (!PROXY_WORKER_IS_INITIALIZED(worker))
                     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;
             }