Re: Patch to fix comm_incoming (squid-1.2beta22) - Part 2

From: Stewart Forster <slf@dont-contact.us>
Date: Thu, 04 Jun 1998 16:52:28 +1000

--MimeMultipartBoundary
Content-Type: text/plain; charset=us-ascii

Sigh,

        Small patch to fix the calculation bit. Originally I had a static
average of 2, rather than the average_incoming value which was calculated
from the number of incoming sockets. Apply this after the last patch.

        Stew.

===================================================================
RCS file: RCS/comm.c,v
retrieving revision 1.2
diff -u -r1.2 comm.c
--- comm.c 1998/06/04 06:49:52 1.2
+++ comm.c 1998/06/04 06:50:11
@@ -775,7 +775,7 @@
        httpAccept(HttpSockets[j], &incame);
     }
     statHistCount(&Counter.comm_incoming, incame);
- incoming_interval = incoming_interval + 2 - incame;
+ incoming_interval = incoming_interval + average_incoming - incame;
     if (incoming_interval < 0)
        incoming_interval = 0;
     if (incoming_interval > MAX_INCOMING_INTERVAL)

--MimeMultipartBoundary--
Received on Tue Jul 29 2003 - 13:15:50 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:11:48 MST