You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@avalon.apache.org by co...@apache.org on 2002/02/23 16:09:29 UTC
cvs commit: jakarta-avalon-logkit/src/java/org/apache/log/output/io/rotate RotateStrategyBySize.java
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: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>