You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by ji...@apache.org on 2006/07/12 17:13:22 UTC

svn commit: r421287 - /httpd/httpd/trunk/modules/proxy/mod_proxy_balancer.c

Author: jim
Date: Wed Jul 12 08:13:22 2006
New Revision: 421287

URL: http://svn.apache.org/viewvc?rev=421287&view=rev
Log:
The number of times elected as well as the i/o
of the workers is useful info to show in the
manager.

Modified:
    httpd/httpd/trunk/modules/proxy/mod_proxy_balancer.c

Modified: httpd/httpd/trunk/modules/proxy/mod_proxy_balancer.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/proxy/mod_proxy_balancer.c?rev=421287&r1=421286&r2=421287&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/proxy/mod_proxy_balancer.c (original)
+++ httpd/httpd/trunk/modules/proxy/mod_proxy_balancer.c Wed Jul 12 08:13:22 2006
@@ -685,6 +685,7 @@
                 "<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;
@@ -710,7 +711,11 @@
                     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;
             }