Skip to content

Commit 27bdb32

Browse files
author
Alexandru Scvortov
committed
MCM: only print basic.return stats if messages are mandatory and/or immediate
1 parent 954daba commit 27bdb32

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

test/src/com/rabbitmq/examples/MulticastMain.java

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -367,9 +367,11 @@ private void delay(long now)
367367
System.out.print("sending rate: " +
368368
(msgCount * 1000L / elapsed) +
369369
" msg/s");
370-
System.out.print(", basic returns: " +
371-
(basicReturnCount * 1000L / elapsed) +
372-
" ret/s");
370+
if (mandatory || immediate) {
371+
System.out.print(", basic returns: " +
372+
(basicReturnCount * 1000L / elapsed) +
373+
" ret/s");
374+
}
373375
if (confirm) {
374376
System.out.print(", confirms: " +
375377
(confirmCount * 1000L / elapsed) +

0 commit comments

Comments
 (0)