You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by sh...@apache.org on 2011/11/11 08:58:04 UTC

svn commit: r1200755 - /lucene/dev/branches/branch_3x/lucene/contrib/benchmark/src/java/org/apache/lucene/benchmark/byTask/feeds/ContentItemsSource.java

Author: shaie
Date: Fri Nov 11 07:58:04 2011
New Revision: 1200755

URL: http://svn.apache.org/viewvc?rev=1200755&view=rev
Log:
fix ContentItemsSource.printStatistics to print only if verbose

Modified:
    lucene/dev/branches/branch_3x/lucene/contrib/benchmark/src/java/org/apache/lucene/benchmark/byTask/feeds/ContentItemsSource.java

Modified: lucene/dev/branches/branch_3x/lucene/contrib/benchmark/src/java/org/apache/lucene/benchmark/byTask/feeds/ContentItemsSource.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_3x/lucene/contrib/benchmark/src/java/org/apache/lucene/benchmark/byTask/feeds/ContentItemsSource.java?rev=1200755&r1=1200754&r2=1200755&view=diff
==============================================================================
--- lucene/dev/branches/branch_3x/lucene/contrib/benchmark/src/java/org/apache/lucene/benchmark/byTask/feeds/ContentItemsSource.java (original)
+++ lucene/dev/branches/branch_3x/lucene/contrib/benchmark/src/java/org/apache/lucene/benchmark/byTask/feeds/ContentItemsSource.java Fri Nov 11 07:58:04 2011
@@ -149,6 +149,9 @@ public abstract class ContentItemsSource
   }
 
   public void printStatistics(String itemsName) {
+    if (!verbose) {
+      return;
+    }
     boolean print = false;
     String col = "                  ";
     StringBuilder sb = new StringBuilder();