]> granicus.if.org Git - apache/commitdiff
Non-functional change. Simple cleanup.
authorJim Jagielski <jim@apache.org>
Fri, 3 Aug 2007 14:54:40 +0000 (14:54 +0000)
committerJim Jagielski <jim@apache.org>
Fri, 3 Aug 2007 14:54:40 +0000 (14:54 +0000)
PR: 42805

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@562492 13f79535-47bb-0310-9956-ffa450edef68

modules/generators/mod_status.c

index b2a6ea28cc00671fde2132db762c6e3f8b324454..9a550adc11a297eb15a80cbfef028653928d091a 100644 (file)
@@ -429,14 +429,13 @@ static int status_handler(request_rec *r)
 #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 @@ static int status_handler(request_rec *r)
                            (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);