httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From stodd...@apache.org
Subject cvs commit: httpd-2.0/modules/generators mod_status.c
Date Wed, 21 Feb 2001 21:02:58 GMT
stoddard    01/02/21 13:02:58

  Modified:    modules/generators mod_status.c
  Log:
  Performance: apr_now() was being called for -all- requests. Call it only
  for calls to server-status.  This module is still a mess...
  
  Revision  Changes    Path
  1.31      +2 -1      httpd-2.0/modules/generators/mod_status.c
  
  Index: mod_status.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/modules/generators/mod_status.c,v
  retrieving revision 1.30
  retrieving revision 1.31
  diff -u -r1.30 -r1.31
  --- mod_status.c	2001/02/16 04:26:38	1.30
  +++ mod_status.c	2001/02/21 21:02:57	1.31
  @@ -230,7 +230,7 @@
   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 @@
           return DECLINED;
       }
   
  +    nowtime = apr_time_now();
       tu = ts = tcu = tcs = 0;
   
       if (!ap_exists_scoreboard_image()) {
  
  
  

Mime
View raw message