cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cziege...@apache.org
Subject svn commit: r161257 - cocoon/branches/BRANCH_2_1_X/src/test/org/apache/cocoon/xml/SaxBufferTestCase.java
Date Thu, 14 Apr 2005 10:36:57 GMT
Author: cziegeler
Date: Thu Apr 14 03:36:54 2005
New Revision: 161257

URL: http://svn.apache.org/viewcvs?view=rev&rev=161257
Log:
Avoid division by zero

Modified:
    cocoon/branches/BRANCH_2_1_X/src/test/org/apache/cocoon/xml/SaxBufferTestCase.java

Modified: cocoon/branches/BRANCH_2_1_X/src/test/org/apache/cocoon/xml/SaxBufferTestCase.java
URL: http://svn.apache.org/viewcvs/cocoon/branches/BRANCH_2_1_X/src/test/org/apache/cocoon/xml/SaxBufferTestCase.java?view=diff&r1=161256&r2=161257
==============================================================================
--- cocoon/branches/BRANCH_2_1_X/src/test/org/apache/cocoon/xml/SaxBufferTestCase.java (original)
+++ cocoon/branches/BRANCH_2_1_X/src/test/org/apache/cocoon/xml/SaxBufferTestCase.java Thu
Apr 14 03:36:54 2005
@@ -60,7 +60,7 @@
             generateSmallSAX(sb);
             sb.recycle();
         }
-        long stop = System.currentTimeMillis();
+        long stop = System.currentTimeMillis() + 1;
 
         double r = 1000*loop/(stop-start);
         System.out.println("consuming: "+ r + " documents per second");
@@ -86,7 +86,7 @@
             bis.reset();
             p.parse(bis,wrapper);
         }
-        long stop = System.currentTimeMillis();
+        long stop = System.currentTimeMillis() + 1;
 
         double r = 1000*loop/(stop-start);
         System.out.println("parsed:" + r + " documents per second");
@@ -98,7 +98,7 @@
         for(int i=0;i<loop;i++) {
             b.toSAX(ch);
         }
-        stop = System.currentTimeMillis();
+        stop = System.currentTimeMillis() + 1;
 
         r = 1000*loop/(stop-start);
         System.out.println("recalling: " + r + " documents per second");



Mime
View raw message