Skip to content

Commit 6744f31

Browse files
committed
merger
2 parents fcc891e + 071ec8b commit 6744f31

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)