chemistry-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j...@apache.org
Subject svn commit: r930027 - in /incubator/chemistry/trunk/opencmis/opencmis-test/opencmis-test-util/src/main/java/org/apache/opencmis/util/repository: ObjGenApp.java TimeLogger.java
Date Thu, 01 Apr 2010 16:12:48 GMT
Author: jens
Date: Thu Apr  1 16:12:48 2010
New Revision: 930027

URL: http://svn.apache.org/viewvc?rev=930027&view=rev
Log:
CMIS-183
two small bug fixes

Modified:
    incubator/chemistry/trunk/opencmis/opencmis-test/opencmis-test-util/src/main/java/org/apache/opencmis/util/repository/ObjGenApp.java
    incubator/chemistry/trunk/opencmis/opencmis-test/opencmis-test-util/src/main/java/org/apache/opencmis/util/repository/TimeLogger.java

Modified: incubator/chemistry/trunk/opencmis/opencmis-test/opencmis-test-util/src/main/java/org/apache/opencmis/util/repository/ObjGenApp.java
URL: http://svn.apache.org/viewvc/incubator/chemistry/trunk/opencmis/opencmis-test/opencmis-test-util/src/main/java/org/apache/opencmis/util/repository/ObjGenApp.java?rev=930027&r1=930026&r2=930027&view=diff
==============================================================================
--- incubator/chemistry/trunk/opencmis/opencmis-test/opencmis-test-util/src/main/java/org/apache/opencmis/util/repository/ObjGenApp.java
(original)
+++ incubator/chemistry/trunk/opencmis/opencmis-test/opencmis-test-util/src/main/java/org/apache/opencmis/util/repository/ObjGenApp.java
Thu Apr  1 16:12:48 2010
@@ -255,6 +255,7 @@ public class ObjGenApp {
     System.out.println("Document Type: " + options.valueOf(fDocType));
     System.out.println("Folder id used as root: " + options.valueOf(fRootFolder));
     System.out.println("Delete all objects after creation: " + options.valueOf(fCleanup));
+    System.out.println("Number of actions to perform: " + options.valueOf(fCount));
     System.out.println("Number of threads to start: " + options.valueOf(fThreads));
   }
 
@@ -297,6 +298,10 @@ public class ObjGenApp {
   }
 
   private void createFolders(OptionSet options) {
+    System.out.println();
+    System.out.println("Creating folder with parameters:");
+    printParameters(options);
+    System.out.println("Folder Type: " + options.valueOf(fFolderType));
     int noThreads = options.valueOf(fThreads);
     if (noThreads <= 1)
       createFolders(options.valueOf(fRepoId), options.valueOf(fFolderType), options

Modified: incubator/chemistry/trunk/opencmis/opencmis-test/opencmis-test-util/src/main/java/org/apache/opencmis/util/repository/TimeLogger.java
URL: http://svn.apache.org/viewvc/incubator/chemistry/trunk/opencmis/opencmis-test/opencmis-test-util/src/main/java/org/apache/opencmis/util/repository/TimeLogger.java?rev=930027&r1=930026&r2=930027&view=diff
==============================================================================
--- incubator/chemistry/trunk/opencmis/opencmis-test/opencmis-test-util/src/main/java/org/apache/opencmis/util/repository/TimeLogger.java
(original)
+++ incubator/chemistry/trunk/opencmis/opencmis-test/opencmis-test-util/src/main/java/org/apache/opencmis/util/repository/TimeLogger.java
Thu Apr  1 16:12:48 2010
@@ -156,7 +156,7 @@ public class TimeLogger {
     long sum = 0;
     
     for (TimeRecord tm : fTimeRecs) {
-      sum = tm.fStop - tm.fStart;
+      sum += tm.fStop - tm.fStart;
     }
     return sum; 
   }



Mime
View raw message