Return-Path: Delivered-To: apmail-httpd-cvs-archive@www.apache.org Received: (qmail 8161 invoked from network); 3 Aug 2007 14:55:03 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 3 Aug 2007 14:55:03 -0000 Received: (qmail 4376 invoked by uid 500); 3 Aug 2007 14:55:02 -0000 Delivered-To: apmail-httpd-cvs-archive@httpd.apache.org Received: (qmail 4180 invoked by uid 500); 3 Aug 2007 14:55:02 -0000 Mailing-List: contact cvs-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list cvs@httpd.apache.org Received: (qmail 4169 invoked by uid 99); 3 Aug 2007 14:55:02 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Aug 2007 07:55:02 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO eris.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Aug 2007 14:55:02 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 0E35A1A981C; Fri, 3 Aug 2007 07:54:42 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r562492 - /httpd/httpd/trunk/modules/generators/mod_status.c Date: Fri, 03 Aug 2007 14:54:41 -0000 To: cvs@httpd.apache.org From: jim@apache.org X-Mailer: svnmailer-1.1.0 Message-Id: <20070803145442.0E35A1A981C@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org 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, "
%.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);