From: robertc <> Date: Wed, 25 Sep 2002 03:29:31 +0000 (+0000) Subject: delay pools updates for store_client interface changes X-Git-Tag: SQUID_3_0_PRE1~734 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fc582e0f1c72969a4bc3d274c2d2412aa5f07f40;p=thirdparty%2Fsquid.git delay pools updates for store_client interface changes --- diff --git a/src/delay_pools.cc b/src/delay_pools.cc index 04b5729fb2..6698e24e2e 100644 --- a/src/delay_pools.cc +++ b/src/delay_pools.cc @@ -1,6 +1,6 @@ /* - * $Id: delay_pools.cc,v 1.25 2002/07/20 12:30:04 hno Exp $ + * $Id: delay_pools.cc,v 1.26 2002/09/24 21:29:31 robertc Exp $ * * DEBUG: section 77 Delay Pools * AUTHOR: David Luyer @@ -37,6 +37,7 @@ #if DELAY_POOLS #include "squid.h" +#include "StoreClient.h" struct _class1DelayPool { int class; @@ -657,7 +658,7 @@ delayMostBytesWanted(const MemObject * mem, int max) continue; if (sc->type != STORE_MEM_CLIENT) continue; - wanted = sc->copy_size; + wanted = sc->copyInto.length; if (wanted > max) wanted = max; i = delayBytesWanted(sc->delay_id, i, wanted); @@ -680,7 +681,7 @@ delayMostBytesAllowed(const MemObject * mem) continue; if (sc->type != STORE_MEM_CLIENT) continue; - j = delayBytesWanted(sc->delay_id, 0, sc->copy_size); + j = delayBytesWanted(sc->delay_id, 0, sc->copyInto.length); if (j > jmax) { jmax = j; d = sc->delay_id;