avalon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dona...@apache.org
Subject cvs commit: jakarta-avalon-logkit/src/java/org/apache/log/output/io/rotate RevolvingFileStrategy.java
Date Mon, 19 Aug 2002 09:33:14 GMT
donaldp     2002/08/19 02:33:14

  Modified:    src/java/org/apache/log/output/io/rotate
                        RevolvingFileStrategy.java
  Log:
  Make sure the oldest file is correct. If the first generation is not 0 the wrong value for
"oldest" would be assumed.
  
  Submitted by: david.gray@hic.gov.au
  
  Revision  Changes    Path
  1.10      +1 -1      jakarta-avalon-logkit/src/java/org/apache/log/output/io/rotate/RevolvingFileStrategy.java
  
  Index: RevolvingFileStrategy.java
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon-logkit/src/java/org/apache/log/output/io/rotate/RevolvingFileStrategy.java,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- RevolvingFileStrategy.java	20 May 2002 10:12:50 -0000	1.9
  +++ RevolvingFileStrategy.java	19 Aug 2002 09:33:14 -0000	1.10
  @@ -146,7 +146,7 @@
           long time = matchingFiles[ 0 ].lastModified();
   
           //index of oldest file
  -        int oldest = 0;
  +        int oldest = rotations[ 0 ];
           for( int i = 0; i < matchingFiles.length; i++ )
           {
               final File file = matchingFiles[ i ];
  
  
  

--
To unsubscribe, e-mail:   <mailto:avalon-cvs-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:avalon-cvs-help@jakarta.apache.org>


Mime
View raw message