tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mt...@apache.org
Subject svn commit: r697451 - /tomcat/connectors/trunk/jk/native/common/jk_ajp_common.c
Date Sun, 21 Sep 2008 07:23:09 GMT
Author: mturk
Date: Sun Sep 21 00:23:08 2008
New Revision: 697451

URL: http://svn.apache.org/viewvc?rev=697451&view=rev
Log:
Provided time can be modified, so log original value

Modified:
    tomcat/connectors/trunk/jk/native/common/jk_ajp_common.c

Modified: tomcat/connectors/trunk/jk/native/common/jk_ajp_common.c
URL: http://svn.apache.org/viewvc/tomcat/connectors/trunk/jk/native/common/jk_ajp_common.c?rev=697451&r1=697450&r2=697451&view=diff
==============================================================================
--- tomcat/connectors/trunk/jk/native/common/jk_ajp_common.c (original)
+++ tomcat/connectors/trunk/jk/native/common/jk_ajp_common.c Sun Sep 21 00:23:08 2008
@@ -2808,6 +2808,7 @@
 int JK_METHOD ajp_maintain(jk_worker_t *pThis, time_t now, jk_logger_t *l)
 {
     JK_TRACE_ENTER(l);
+    time_t mstarted = now;
 
     if (pThis && pThis->worker_private) {
         ajp_worker_t *aw = pThis->worker_private;
@@ -2912,12 +2913,12 @@
             if (n && JK_IS_DEBUG_LEVEL(l))
                 jk_log(l, JK_LOG_DEBUG,
                         "recycled %u sockets in %d seconds from %u pool slots",
-                        n, (int)(difftime(time(NULL), now)),
+                        n, (int)(difftime(time(NULL), mstarted)),
                         aw->ep_cache_sz);
             if (k && JK_IS_DEBUG_LEVEL(l))
                 jk_log(l, JK_LOG_DEBUG,
                         "pinged %u sockets in %d seconds from %u pool slots",
-                        k, (int)(difftime(time(NULL), now)),
+                        k, (int)(difftime(time(NULL), mstarted)),
                         aw->ep_cache_sz);
             JK_TRACE_EXIT(l);
             return JK_TRUE;



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


Mime
View raw message