]> granicus.if.org Git - apache/commitdiff
fix a couple of formatting bugs in the !HAVE_TIMES path
authorJeff Trawick <trawick@apache.org>
Fri, 15 Mar 2002 12:40:39 +0000 (12:40 +0000)
committerJeff Trawick <trawick@apache.org>
Fri, 15 Mar 2002 12:40:39 +0000 (12:40 +0000)
(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

modules/generators/mod_status.c

index 3aecb4e2fc1fe046b8e944da996461e3c2f05031..e88e3db37b244799a1cd8941105e1d1aeb41871b 100644 (file)
@@ -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</td><td>%.0f</td><td>%ld",
+                        ap_rprintf(r, "\n</td><td>%ld</td><td>%ld",
 #else
                         ap_rprintf(r, "\n</td><td>%.2f</td><td>%ld</td><td>%ld",
                                    (ws_record.times.tms_utime +