geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akulshresh...@apache.org
Subject svn commit: r603663 - /geronimo/server/trunk/plugins/tomcat/geronimo-tomcat6/src/main/java/org/apache/geronimo/tomcat/stats/ConnectorStats.java
Date Wed, 12 Dec 2007 16:23:48 GMT
Author: akulshreshtha
Date: Wed Dec 12 08:23:47 2007
New Revision: 603663

URL: http://svn.apache.org/viewvc?rev=603663&view=rev
Log:
GERONIMO-3697 Tomcat does not keep track of min RequestTime. Use 0 as an Undefined Value
              Fix a typo

Modified:
    geronimo/server/trunk/plugins/tomcat/geronimo-tomcat6/src/main/java/org/apache/geronimo/tomcat/stats/ConnectorStats.java

Modified: geronimo/server/trunk/plugins/tomcat/geronimo-tomcat6/src/main/java/org/apache/geronimo/tomcat/stats/ConnectorStats.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/plugins/tomcat/geronimo-tomcat6/src/main/java/org/apache/geronimo/tomcat/stats/ConnectorStats.java?rev=603663&r1=603662&r2=603663&view=diff
==============================================================================
--- geronimo/server/trunk/plugins/tomcat/geronimo-tomcat6/src/main/java/org/apache/geronimo/tomcat/stats/ConnectorStats.java
(original)
+++ geronimo/server/trunk/plugins/tomcat/geronimo-tomcat6/src/main/java/org/apache/geronimo/tomcat/stats/ConnectorStats.java
Wed Dec 12 08:23:47 2007
@@ -36,7 +36,7 @@
  * @version $Revision$ $Date$
  */
 public class ConnectorStats {
-    private static final Log log = LogFactory.getLog(ModuleStats.class);
+    private static final Log log = LogFactory.getLog(ConnectorStats.class);
     protected MBeanServer mBeanServer = null;
 
     protected Registry registry;
@@ -107,7 +107,8 @@
             int errorCount = ((Integer) (mBeanServer.getAttribute(grpName, "errorCount"))).intValue();
             long bytesReceived = ((Long) (mBeanServer.getAttribute(grpName, "bytesReceived"))).longValue();
             long bytesSent = ((Long) (mBeanServer.getAttribute(grpName, "bytesSent"))).longValue();
-            stats.setRequestTime(requestCount, -1, maxTime, processingTime);
+            // Tomcat does not keep min Time, using 0 as Undefined value
+            stats.setRequestTime(requestCount, 0, maxTime, processingTime);
             stats.setErrorCount(errorCount);            
             stats.setBytesSentCount(bytesSent);
             stats.setBytesReceivedCount(bytesReceived);



Mime
View raw message