james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From btell...@apache.org
Subject svn commit: r1691502 - /james/server/trunk/container/cli/src/main/java/org/apache/james/cli/ServerCmd.java
Date Fri, 17 Jul 2015 09:11:04 GMT
Author: btellier
Date: Fri Jul 17 09:11:04 2015
New Revision: 1691502

URL: http://svn.apache.org/r1691502
Log:
JAMES-1584 correcting StopWatch use

Modified:
    james/server/trunk/container/cli/src/main/java/org/apache/james/cli/ServerCmd.java

Modified: james/server/trunk/container/cli/src/main/java/org/apache/james/cli/ServerCmd.java
URL: http://svn.apache.org/viewvc/james/server/trunk/container/cli/src/main/java/org/apache/james/cli/ServerCmd.java?rev=1691502&r1=1691501&r2=1691502&view=diff
==============================================================================
--- james/server/trunk/container/cli/src/main/java/org/apache/james/cli/ServerCmd.java (original)
+++ james/server/trunk/container/cli/src/main/java/org/apache/james/cli/ServerCmd.java Fri
Jul 17 09:11:04 2015
@@ -82,10 +82,11 @@ public class ServerCmd {
             CommandLine cmd = parseCommandLine(args);
             CmdType cmdType =new ServerCmd(new JmxServerProbe(cmd.getOptionValue(HOST_OPT_LONG),
getPort(cmd)))
                 .executeCommandLine(cmd);
-            stopWatch.stop();
+            stopWatch.split();
             print(new String[] { Joiner.on(' ')
                     .join(cmdType.getCommand(), "command executed sucessfully in", stopWatch.getSplitTime(),
"ms.")},
                 System.out);
+            stopWatch.stop();
             System.exit(0);
         } catch (JamesCliException e) {
             failWithMessage(e.getMessage());



---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


Mime
View raw message