luehe 2004/09/29 14:07:07 Modified: catalina/src/share/org/apache/catalina/core StandardContext.java Log: Fixed getStartTime() to return time when context was started (instead of time it took to start context) Revision Changes Path 1.148 +13 -2 jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/core/StandardContext.java Index: StandardContext.java =================================================================== RCS file: /home/cvs/jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/core/StandardContext.java,v retrieving revision 1.147 retrieving revision 1.148 diff -u -r1.147 -r1.148 --- StandardContext.java 23 Sep 2004 06:58:51 -0000 1.147 +++ StandardContext.java 29 Sep 2004 21:07:05 -0000 1.148 @@ -1079,6 +1079,11 @@ this.defaultWebXml = defaultWebXml; } + /** + * Gets the time (in milliseconds) it took to start this context. + * + * @return Time (in milliseconds) it took to start this context. + */ public long getStartupTime() { return startupTime; } @@ -5408,8 +5413,14 @@ return this.javaVMs = javaVMs; } + /** + * Gets the time this context was started. + * + * @return Time (in milliseconds since January 1, 1970, 00:00:00) when this + * context was started + */ public long getStartTime() { - return startupTime; + return startTime; } public boolean isEventProvider() {
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]