This is an automated email from the ASF dual-hosted git repository.

vongosling pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/rocketmq.git


The following commit(s) were added to refs/heads/develop by this push:
     new 7fd657f  Format the precision output TPS
7fd657f is described below

commit 7fd657f75c3d76c8339763682147642c0ecbc8bd
Author: maowei.ymw <[email protected]>
AuthorDate: Mon Dec 10 13:33:24 2018 +0800

    Format the precision output TPS
---
 .../rocketmq/tools/command/consumer/ConsumerProgressSubCommand.java     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/tools/src/main/java/org/apache/rocketmq/tools/command/consumer/ConsumerProgressSubCommand.java
 
b/tools/src/main/java/org/apache/rocketmq/tools/command/consumer/ConsumerProgressSubCommand.java
index a1b3c1a..b946ee1 100644
--- 
a/tools/src/main/java/org/apache/rocketmq/tools/command/consumer/ConsumerProgressSubCommand.java
+++ 
b/tools/src/main/java/org/apache/rocketmq/tools/command/consumer/ConsumerProgressSubCommand.java
@@ -155,7 +155,7 @@ public class ConsumerProgressSubCommand implements 
SubCommand {
                 }
 
                 System.out.printf("%n");
-                System.out.printf("Consume TPS: %s%n", 
consumeStats.getConsumeTps());
+                System.out.printf("Consume TPS: %.2f%n", 
consumeStats.getConsumeTps());
                 System.out.printf("Diff Total: %d%n", diffTotal);
             } else {
                 System.out.printf("%-32s  %-6s  %-24s %-5s  %-14s  %-7s  %s%n",

Reply via email to