kafka-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j...@apache.org
Subject [kafka] branch trunk updated: MINOR: Remove redundant initialization of `Stats.index` (#4751)
Date Sat, 24 Mar 2018 19:39:12 GMT
This is an automated email from the ASF dual-hosted git repository.

jgus pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/kafka.git


The following commit(s) were added to refs/heads/trunk by this push:
     new 514936a  MINOR: Remove redundant initialization of `Stats.index` (#4751)
514936a is described below

commit 514936af6f04e00ad908d3835040db5b0d5698c2
Author: cburroughs <chris.burroughs@gmail.com>
AuthorDate: Sat Mar 24 15:39:10 2018 -0400

    MINOR: Remove redundant initialization of `Stats.index` (#4751)
---
 tools/src/main/java/org/apache/kafka/tools/ProducerPerformance.java | 1 -
 1 file changed, 1 deletion(-)

diff --git a/tools/src/main/java/org/apache/kafka/tools/ProducerPerformance.java b/tools/src/main/java/org/apache/kafka/tools/ProducerPerformance.java
index d7572b0..400231e 100644
--- a/tools/src/main/java/org/apache/kafka/tools/ProducerPerformance.java
+++ b/tools/src/main/java/org/apache/kafka/tools/ProducerPerformance.java
@@ -315,7 +315,6 @@ public class ProducerPerformance {
         public Stats(long numRecords, int reportingInterval) {
             this.start = System.currentTimeMillis();
             this.windowStart = System.currentTimeMillis();
-            this.index = 0;
             this.iteration = 0;
             this.sampling = (int) (numRecords / Math.min(numRecords, 500000));
             this.latencies = new int[(int) (numRecords / this.sampling) + 1];

-- 
To stop receiving notification emails like this one, please contact
jgus@apache.org.

Mime
View raw message