From: Jim Jagielski Date: Fri, 3 Aug 2007 14:54:40 +0000 (+0000) Subject: Non-functional change. Simple cleanup. X-Git-Tag: 2.3.0~1650 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=05fe25163d345f3627c069cbb4cadeb2a0a17d38;p=thirdparty%2Fapache%2Fhttpd.git Non-functional change. Simple cleanup. PR: 42805 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@562492 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/generators/mod_status.c b/modules/generators/mod_status.c index b2a6ea28cc0..9a550adc11a 100644 --- a/modules/generators/mod_status.c +++ b/modules/generators/mod_status.c @@ -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, "
%.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);