We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d52a1a5 commit 7bd03eaCopy full SHA for 7bd03ea
test/src/com/rabbitmq/examples/MulticastMain.java
@@ -380,10 +380,12 @@ public void run() {
380
throw new RuntimeException(e);
381
}
382
383
- System.out.println("recving rate avg: " +
384
- (totalMsgCount * 1000 / (now - startTime)) +
385
- " msg/s");
386
-
+ long elapsed = now - startTime;
+ if (elapsed > 0) {
+ System.out.println("recving rate avg: " +
+ (totalMsgCount * 1000 / elapsed) +
387
+ " msg/s");
388
+ }
389
390
391
0 commit comments