httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j..@apache.org
Subject svn commit: r562492 - /httpd/httpd/trunk/modules/generators/mod_status.c
Date Fri, 03 Aug 2007 14:54:41 GMT
Author: jim
Date: Fri Aug  3 07:54:40 2007
New Revision: 562492

URL: http://svn.apache.org/viewvc?view=rev&rev=562492
Log:
Non-functional change. Simple cleanup.
PR: 42805

Modified:
    httpd/httpd/trunk/modules/generators/mod_status.c

Modified: httpd/httpd/trunk/modules/generators/mod_status.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/generators/mod_status.c?view=diff&rev=562492&r1=562491&r2=562492
==============================================================================
--- httpd/httpd/trunk/modules/generators/mod_status.c (original)
+++ httpd/httpd/trunk/modules/generators/mod_status.c Fri Aug  3 07:54:40 2007
@@ -429,14 +429,13 @@
 #endif
 
             ap_rprintf(r, "Uptime: %ld\n", (long) (up_time));
-            if (up_time > 0)
+            if (up_time > 0) {
                 ap_rprintf(r, "ReqPerSec: %g\n",
                            (float) count / (float) up_time);
 
-            if (up_time > 0)
                 ap_rprintf(r, "BytesPerSec: %g\n",
                            KBYTE * (float) kbcount / (float) up_time);
-
+            }
             if (count > 0)
                 ap_rprintf(r, "BytesPerReq: %g\n",
                            KBYTE * (float) kbcount / (float) count);
@@ -456,11 +455,10 @@
                            (tu + ts + tcu + tcs) / tick / up_time * 100.);
 #endif
 
-            if (up_time > 0)
+            if (up_time > 0) {
                 ap_rprintf(r, "<dt>%.3g requests/sec - ",
                            (float) count / (float) up_time);
 
-            if (up_time > 0) {
                 format_byte_out(r, (unsigned long)(KBYTE * (float) kbcount
                                                    / (float) up_time));
                 ap_rputs("/second - ", r);



Mime
View raw message