]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Performance: apr_now() was being called for -all- requests. Call it only
authorBill Stoddard <stoddard@apache.org>
Wed, 21 Feb 2001 21:02:57 +0000 (21:02 +0000)
committerBill Stoddard <stoddard@apache.org>
Wed, 21 Feb 2001 21:02:57 +0000 (21:02 +0000)
for calls to server-status.  This module is still a mess...

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@88265 13f79535-47bb-0310-9956-ffa450edef68

modules/generators/mod_status.c

index 637195cf682f14d8c2e3a621f0e5afece398167e..8e86f43ef14b4c19e4b05287700e3eb0d20c50dd 100644 (file)
@@ -230,7 +230,7 @@ static char status_flags[SERVER_NUM_STATUS];
 static int status_handler(request_rec *r)
 {
     const char *loc;
-    apr_time_t nowtime = apr_time_now();
+    apr_time_t nowtime;
     apr_interval_time_t up_time;
     int j, i, res;
     int ready = 0;
@@ -262,6 +262,7 @@ static int status_handler(request_rec *r)
         return DECLINED;
     }
 
+    nowtime = apr_time_now();
     tu = ts = tcu = tcs = 0;
 
     if (!ap_exists_scoreboard_image()) {