You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jmeter.apache.org by fs...@apache.org on 2015/12/22 14:44:33 UTC
svn commit: r1721400 -
/jmeter/trunk/src/core/org/apache/jmeter/report/processor/ExternalSampleSorter.java
Author: fschumacher
Date: Tue Dec 22 13:44:32 2015
New Revision: 1721400
URL: http://svn.apache.org/viewvc?rev=1721400&view=rev
Log:
Variable stop is only used in debug log mode, so get rid of this normally unused variable by inlining the call to currentTimeMillis()
Modified:
jmeter/trunk/src/core/org/apache/jmeter/report/processor/ExternalSampleSorter.java
Modified: jmeter/trunk/src/core/org/apache/jmeter/report/processor/ExternalSampleSorter.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/core/org/apache/jmeter/report/processor/ExternalSampleSorter.java?rev=1721400&r1=1721399&r2=1721400&view=diff
==============================================================================
--- jmeter/trunk/src/core/org/apache/jmeter/report/processor/ExternalSampleSorter.java (original)
+++ jmeter/trunk/src/core/org/apache/jmeter/report/processor/ExternalSampleSorter.java Tue Dec 22 13:44:32 2015
@@ -322,7 +322,6 @@ public class ExternalSampleSorter extend
private File sortAndDump(final List<Sample> samples,
final SampleMetadata sampleMetadata) {
long start = 0;
- long stop = 0;
if (log.isDebugEnabled()) {
log.debug("sortAndDump(): Sorting " + samples.size()
+ " samples...");
@@ -334,8 +333,7 @@ public class ExternalSampleSorter extend
+ " != " + samples.size());
}
if (log.isDebugEnabled()) {
- stop = System.currentTimeMillis();
- log.debug("sortAndDump(): in " + (stop - start) / 1000f
+ log.debug("sortAndDump(): in " + (System.currentTimeMillis() - start) / 1000f
+ " s. Sorted " + samples.size() + " samples.");
}
File out = getChunkFile();
@@ -350,8 +348,7 @@ public class ExternalSampleSorter extend
}
}
if (log.isDebugEnabled()) {
- stop = System.currentTimeMillis();
- log.debug("sortAndDump(): in " + (stop - start) / 1000f
+ log.debug("sortAndDump(): in " + (System.currentTimeMillis() - start) / 1000f
+ " s : Dumped chunk " + out.getAbsolutePath());
}
return out;