Skip to content

Commit

Permalink
cleanup commented code
Browse files Browse the repository at this point in the history
Signed-off-by: olivier lamy <[email protected]>
  • Loading branch information
olamy committed Mar 30, 2017
1 parent 98611df commit 132f4bf
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 13 deletions.
9 changes: 9 additions & 0 deletions jetty-load-generator-starter/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,15 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<systemPropertyVariables>
<org.mortbay.jetty.load.generator.LEVEL>DEBUG</org.mortbay.jetty.load.generator.LEVEL>
</systemPropertyVariables>
</configuration>
</plugin>
</plugins>
</build>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,6 @@ public void run()
if ( starterArgs.getRunningTime() > 0 )
{
loadGeneratorBuilder.runFor( starterArgs.getRunningTime(), starterArgs.getRunningTimeUnit() );
runFor = true;
}

for ( Resource.Listener listener : getResourceListeners() )
Expand All @@ -120,19 +119,7 @@ public void run()
logger.info( "loadgenerator.config: {}", loadGenerator.getConfig().toString() );
CompletableFuture<Void> cf = loadGenerator.begin();
cf.join();
/*
if ( runFor )
{
logger.info( "runFor" );
long ts = TimeUnit.MILLISECONDS.convert( starterArgs.getRunningTime(), starterArgs.getRunningTimeUnit() );
cf.get( ts + 20, TimeUnit.MILLISECONDS ); // join ?
} else
{
cf.join();
}*/

logger.info( "load test done" );

}

public void displayStats( LoadGenerator loadGenerator )
Expand Down

0 comments on commit 132f4bf

Please sign in to comment.