geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hogst...@apache.org
Subject svn commit: r535697 - /geronimo/server/trunk/modules/geronimo-system/src/main/java/org/apache/geronimo/system/main/LongStartupMonitor.java
Date Mon, 07 May 2007 00:48:13 GMT
Author: hogstrom
Date: Sun May  6 17:48:12 2007
New Revision: 535697

URL: http://svn.apache.org/viewvc?view=rev&rev=535697
Log:
Modify displayed message for server start time to include better granularity than 1 second

Modified:
    geronimo/server/trunk/modules/geronimo-system/src/main/java/org/apache/geronimo/system/main/LongStartupMonitor.java

Modified: geronimo/server/trunk/modules/geronimo-system/src/main/java/org/apache/geronimo/system/main/LongStartupMonitor.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/modules/geronimo-system/src/main/java/org/apache/geronimo/system/main/LongStartupMonitor.java?view=diff&rev=535697&r1=535696&r2=535697
==============================================================================
--- geronimo/server/trunk/modules/geronimo-system/src/main/java/org/apache/geronimo/system/main/LongStartupMonitor.java
(original)
+++ geronimo/server/trunk/modules/geronimo-system/src/main/java/org/apache/geronimo/system/main/LongStartupMonitor.java
Sun May  6 17:48:12 2007
@@ -155,9 +155,8 @@
     }
 
     public synchronized void startupFinished() {
-        int time = Math.round((float) (System.currentTimeMillis() - started) / 1000f);
-
-        out.println("Startup completed in " + time + " seconds");
+        long time = System.currentTimeMillis() - started;
+        out.println("Startup completed in " + getFormattedTime(time) + " seconds");
         StartupMonitorUtil.wrapUp(out, kernel);
     }
 



Mime
View raw message