Fix a bug where more transactions were simulated than specified
This commit is contained in:
@@ -277,6 +277,12 @@ void TrafficGenerator::transitionToNextState()
|
||||
|
||||
void TrafficGenerator::prepareNextPayload()
|
||||
{
|
||||
if (transactionsSent >= maxTransactions)
|
||||
{
|
||||
finished = true;
|
||||
return;
|
||||
}
|
||||
|
||||
if (startEvent && transactionsSent == 0)
|
||||
wait(*startEvent);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user