Skip to content

Commit

Permalink
fix a couple of formatting bugs in the !HAVE_TIMES path
Browse files Browse the repository at this point in the history
(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
  • Loading branch information
trawick committed Mar 15, 2002
1 parent 695e1a6 commit b833f06
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/generators/mod_status.c
Expand Up @@ -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,
Expand Down Expand Up @@ -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 +
Expand Down

0 comments on commit b833f06

Please sign in to comment.