httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wr...@apache.org
Subject cvs commit: httpd-2.0/support rotatelogs.c
Date Fri, 14 Jun 2002 17:16:03 GMT
wrowe       2002/06/14 10:16:03

  Modified:    support  rotatelogs.c
  Log:
    Cleanup some type mismatch emits and consistify to our new apr time helpers
  
  Revision  Changes    Path
  1.26      +3 -3      httpd-2.0/support/rotatelogs.c
  
  Index: rotatelogs.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/support/rotatelogs.c,v
  retrieving revision 1.25
  retrieving revision 1.26
  diff -u -r1.25 -r1.26
  --- rotatelogs.c	13 Jun 2002 16:36:54 -0000	1.25
  +++ rotatelogs.c	14 Jun 2002 17:16:03 -0000	1.26
  @@ -179,7 +179,7 @@
           }
           else if (sRotation) {
               apr_finfo_t finfo;
  -            unsigned int current_size = -1;
  +            apr_off_t current_size = -1;
   
               if ((nLogFD != NULL) && 
                   (apr_file_info_get(&finfo, APR_FINFO_SIZE, nLogFD) == APR_SUCCESS))
{
  @@ -202,10 +202,10 @@
               if (tRotation)
                   tLogStart = (now / tRotation) * tRotation;
               else
  -                tLogStart = apr_time_now() / APR_USEC_PER_SEC;
  +                tLogStart = (int)apr_time_sec(apr_time_now());
   
               if (use_strftime) {
  -		        apr_time_t tNow = tLogStart * APR_USEC_PER_SEC;
  +                apr_time_t tNow = apr_time_from_sec(tLogStart);
                   apr_time_exp_t e;
                   apr_size_t rs;
   
  
  
  

Mime
View raw message