From 7b4eed2664d298fd8914fc724afc323c80c5c17d Mon Sep 17 00:00:00 2001 From: Shai Erera Date: Fri, 11 Nov 2011 07:58:54 +0000 Subject: [PATCH] fix ContentItemsSource.printStatistics to print only if verbose git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1200756 13f79535-47bb-0310-9956-ffa450edef68 --- .../lucene/benchmark/byTask/feeds/ContentItemsSource.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/benchmark/src/java/org/apache/lucene/benchmark/byTask/feeds/ContentItemsSource.java b/modules/benchmark/src/java/org/apache/lucene/benchmark/byTask/feeds/ContentItemsSource.java index d89d88875a9..20f75829b64 100644 --- a/modules/benchmark/src/java/org/apache/lucene/benchmark/byTask/feeds/ContentItemsSource.java +++ b/modules/benchmark/src/java/org/apache/lucene/benchmark/byTask/feeds/ContentItemsSource.java @@ -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();