Skip to content

Commit ea272d6

Browse files
author
Matthias Radestock
committed
permit suppression of routing test by specifying n=0
1 parent 1fc425c commit ea272d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/src/com/rabbitmq/client/test/performance/ScalabilityTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ public void handleBasicReturn(int replyCode, String replyText,
323323
// Compute the roundtrip time
324324
final long finish = System.nanoTime();
325325
final long wallclock = finish - start;
326-
return wallclock / (float) params.messageCount / 1000;
326+
return (params.messageCount == 0) ? (float)0.0 : wallclock / (float) params.messageCount / 1000;
327327
}
328328

329329
private static Parameters parseArgs(String [] args) {

0 commit comments

Comments
 (0)