You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kafka.apache.org by jg...@apache.org on 2018/03/24 19:39:12 UTC
[kafka] branch trunk updated: MINOR: Remove redundant
initialization of `Stats.index` (#4751)
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 <ch...@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.