httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bri...@apache.org
Subject cvs commit: httpd-2.0/modules/generators mod_status.c
Date Sun, 30 Jun 2002 18:20:13 GMT
brianp      2002/06/30 11:20:13

  Modified:    modules/generators mod_status.c
  Log:
  Replaced APR_USEC_PER_SEC division with apr_time_sec macro
  
  Revision  Changes    Path
  1.71      +6 -7      httpd-2.0/modules/generators/mod_status.c
  
  Index: mod_status.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/modules/generators/mod_status.c,v
  retrieving revision 1.70
  retrieving revision 1.71
  diff -u -r1.70 -r1.71
  --- mod_status.c	13 Jun 2002 19:54:52 -0000	1.70
  +++ mod_status.c	30 Jun 2002 18:20:13 -0000	1.71
  @@ -384,9 +384,8 @@
       }
   
       /* up_time in seconds */
  -    up_time = (apr_uint32_t) ((nowtime -
  -                               ap_scoreboard_image->global->restart_time)
  -                              / APR_USEC_PER_SEC);
  +    up_time = (apr_uint32_t) apr_time_sec(nowtime -
  +                               ap_scoreboard_image->global->restart_time);
   
       if (!short_report) {
           ap_rputs(DOCTYPE_HTML_3_2
  @@ -648,8 +647,8 @@
                                  ws_record->times.tms_cutime / tick,
                                  ws_record->times.tms_cstime / tick,
   #endif
  -                               (long)((nowtime - ws_record->last_used) /
  -                                      APR_USEC_PER_SEC),
  +                               (long)apr_time_sec(nowtime -
  +                                                  ws_record->last_used),
                                  (long) req_time);
   
                       format_byte_out(r, conn_bytes);
  @@ -733,8 +732,8 @@
                                   ws_record->times.tms_cutime +
                                   ws_record->times.tms_cstime) / tick,
   #endif
  -                               (long)((nowtime - ws_record->last_used) /
  -                                      APR_USEC_PER_SEC),
  +                               (long)apr_time_sec(nowtime -
  +                                                  ws_record->last_used),
                                  (long)req_time);
                       
                       ap_rprintf(r, "</td><td>%-1.1f</td><td>%-2.2f</td><td>%-2.2f\n",
  
  
  

Mime
View raw message