You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@rocketmq.apache.org by GitBox <gi...@apache.org> on 2022/04/15 01:11:04 UTC

[GitHub] [rocketmq] lwclover commented on a diff in pull request #4166: [ISSUE #4165] add new line in sendMsgStatus

lwclover commented on code in PR #4166:
URL: https://github.com/apache/rocketmq/pull/4166#discussion_r850956080


##########
tools/src/main/java/org/apache/rocketmq/tools/command/broker/SendMsgStatusCommand.java:
##########
@@ -85,7 +85,7 @@ public void execute(CommandLine commandLine, Options options, RPCHook rpcHook) t
             for (int i = 0; i < count; i++) {
                 long begin = System.currentTimeMillis();
                 SendResult result = producer.send(buildMessage(brokerName, messageSize));
-                System.out.printf("rt:" + (System.currentTimeMillis() - begin) + "ms, SendResult=%s", result);
+                System.out.printf("rt:%sms, SendResult=%s%n", System.currentTimeMillis() - begin, result);

Review Comment:
   It's best to keep the format consistent. rt=%sms



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org