httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j..@apache.org
Subject svn commit: r1417440 - /httpd/httpd/trunk/server/scoreboard.c
Date Wed, 05 Dec 2012 14:25:50 GMT
Author: jim
Date: Wed Dec  5 14:25:50 2012
New Revision: 1417440

URL: http://svn.apache.org/viewvc?rev=1417440&view=rev
Log:
save a apr_time_now() call for every request.

Modified:
    httpd/httpd/trunk/server/scoreboard.c

Modified: httpd/httpd/trunk/server/scoreboard.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/server/scoreboard.c?rev=1417440&r1=1417439&r2=1417440&view=diff
==============================================================================
--- httpd/httpd/trunk/server/scoreboard.c (original)
+++ httpd/httpd/trunk/server/scoreboard.c Wed Dec  5 14:25:50 2012
@@ -471,7 +471,6 @@ static int update_child_status_internal(
     }
 
     if (ap_extended_status) {
-        ws->last_used = apr_time_now();
         if (status == SERVER_READY || status == SERVER_DEAD) {
             /*
              * Reset individual counters
@@ -482,6 +481,7 @@ static int update_child_status_internal(
             }
             ws->conn_count = 0;
             ws->conn_bytes = 0;
+            ws->last_used = apr_time_now();
         }
         if (r) {
             apr_cpystrn(ws->client, ap_get_remote_host(c, r->per_dir_config,
@@ -554,10 +554,10 @@ AP_DECLARE(void) ap_time_process_request
     ws = &ap_scoreboard_image->servers[sbh->child_num][sbh->thread_num];
 
     if (status == START_PREQUEST) {
-        ws->start_time = apr_time_now();
+        ws->start_time = ws->last_used = apr_time_now();
     }
     else if (status == STOP_PREQUEST) {
-        ws->stop_time = apr_time_now();
+        ws->stop_time = ws->last_used = apr_time_now();
     }
 }
 



Mime
View raw message