Commit b3ff6735 authored by Bill Stoddard's avatar Bill Stoddard
Browse files

Performance: apr_now() was being called for -all- requests. Call it only

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
parent 1ef99d7b
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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()) {