Skip to content

Commit

Permalink
[NGRINDER-718] Fix thread rampup bug
Browse files Browse the repository at this point in the history
  • Loading branch information
junoyoon committed Jan 20, 2014
1 parent 4a10778 commit 4cd479a
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -738,14 +738,14 @@ protected int doRampUp() {
int rampUpInterval = properties.getInt(GRINDER_PROP_THREAD_INCREMENT_INTERVAL, 0);
int rampUpStep = properties.getInt(GRINDER_PROP_THREAD_INCREMENT, 0);
int rampUpInitialThread = properties.getInt(GRINDER_PROP_INITIAL_PROCESS, 0);
return doRampup(rampUpInterval, rampUpStep, rampUpInitialThread);
return doRampUp(rampUpInterval, rampUpStep, rampUpInitialThread);
}
return 0;
}

private int doRampup(int rampUpInterval, int rampUpStep, int rampUpInitialThread) {
private int doRampUp(int rampUpInterval, int rampUpStep, int rampUpInitialThread) {
int threadNumber = 0;
int waitingTime = 0;
int waitingTime;
if (Grinder.grinder != null) {
threadNumber = Math.max(Grinder.grinder.getThreadNumber(), 0);
}
Expand Down

0 comments on commit 4cd479a

Please sign in to comment.