From: Jeff Trawick Date: Fri, 15 Mar 2002 12:40:39 +0000 (+0000) Subject: fix a couple of formatting bugs in the !HAVE_TIMES path X-Git-Tag: CHANGES~34 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d403a745332de7a693163ff70303669432ca0eee;p=apache fix a couple of formatting bugs in the !HAVE_TIMES path (somebody forgot to convert floating point format to long integer format when APR-izing the time) git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93951 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/generators/mod_status.c b/modules/generators/mod_status.c index 3aecb4e2fc..e88e3db37b 100644 --- a/modules/generators/mod_status.c +++ b/modules/generators/mod_status.c @@ -635,7 +635,7 @@ static int status_handler(request_rec *r) } #ifndef HAVE_TIMES /* Allow for OS/2 not having CPU stats */ - ap_rprintf(r, "]\n %.0f %ld (", + ap_rprintf(r, "]\n %ld %ld (", #else ap_rprintf(r, "] u%g s%g cu%g cs%g\n %ld %ld (", ws_record.times.tms_utime / tick, @@ -718,7 +718,7 @@ static int status_handler(request_rec *r) #ifndef HAVE_TIMES /* Allow for OS/2 not having CPU stats */ - ap_rprintf(r, "\n%.0f%ld", + ap_rprintf(r, "\n%ld%ld", #else ap_rprintf(r, "\n%.2f%ld%ld", (ws_record.times.tms_utime +