manoj       99/03/31 22:24:49

  Modified:    pthreads/src/modules/standard mod_status.c
  Log:
  Some tweaks to mod_status. It now correctly reports the number of
  connections being processed, and notes that they are connections instead
  of requests.
  
  Revision  Changes    Path
  1.8       +3 -2      apache-apr/pthreads/src/modules/standard/mod_status.c
  
  Index: mod_status.c
  ===================================================================
  RCS file: /home/cvs/apache-apr/pthreads/src/modules/standard/mod_status.c,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -u -r1.7 -r1.8
  --- mod_status.c      1999/03/23 22:03:20     1.7
  +++ mod_status.c      1999/04/01 06:24:48     1.8
  @@ -317,7 +317,8 @@
        tid_buffer[i][j] = (int) score_record.tid;
        if (res == SERVER_READY)
            ready++;
  -     else if (res != SERVER_DEAD)
  +     else if (res != SERVER_DEAD && res != SERVER_ACCEPTING
  +              && res != SERVER_QUEUEING && res != SERVER_STARTING)
            busy++;
        if (ap_extended_status) {
            lres = score_record.access_count;
  @@ -424,7 +425,7 @@
       }                                        /* ap_extended_status */
   
       if (!short_report)
  -     ap_rprintf(r, "\n%d requests currently being processed, %d idle 
servers\n"
  +     ap_rprintf(r, "\n%d connections currently being processed, %d idle 
servers\n"
                ,busy, ready);
       else
        ap_rprintf(r, "BusyServers: %d\nIdleServers: %d\n", busy, ready);
  
  
  

Reply via email to