avalon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From co...@apache.org
Subject cvs commit: jakarta-avalon-logkit/src/java/org/apache/log/output/io/rotate RotateStrategyBySize.java
Date Sat, 23 Feb 2002 15:09:29 GMT
colus       02/02/23 07:09:29

  Modified:    src/java/org/apache/log/output/io/rotate
                        RotateStrategyBySize.java
  Log:
  Fix size calculation.
  
  Revision  Changes    Path
  1.7       +1 -2      jakarta-avalon-logkit/src/java/org/apache/log/output/io/rotate/RotateStrategyBySize.java
  
  Index: RotateStrategyBySize.java
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon-logkit/src/java/org/apache/log/output/io/rotate/RotateStrategyBySize.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- RotateStrategyBySize.java	21 Feb 2002 15:11:18 -0000	1.6
  +++ RotateStrategyBySize.java	23 Feb 2002 15:09:29 -0000	1.7
  @@ -56,10 +56,9 @@
        */
       public boolean isRotationNeeded( final String data, final File file )
       {
  -        m_currentSize += data.length();
           if( m_currentSize >= m_maxSize )
           {
  -            m_currentSize = 0;
  +            m_currentSize = data.length();
               return true;
           }
           else
  
  
  

--
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