--------------------- PatchSet 2167 Date: 2001/04/30 21:15:56 Author: akroonmaa Branch: chunked_mempools Tag: (none) Log: need flush all meters before returning totals. Members: lib/MemPool.c:1.1.2.10->1.1.2.11 src/MemPoolStats.c:1.1.2.13->1.1.2.14 Index: squid/lib/MemPool.c =================================================================== RCS file: /cvsroot/squid-sf//squid/lib/Attic/MemPool.c,v retrieving revision 1.1.2.10 retrieving revision 1.1.2.11 diff -u -r1.1.2.10 -r1.1.2.11 --- squid/lib/MemPool.c 30 Apr 2001 19:35:30 -0000 1.1.2.10 +++ squid/lib/MemPool.c 30 Apr 2001 21:15:56 -0000 1.1.2.11 @@ -488,6 +488,7 @@ memPoolInUseCount(const MemPool * pool) { assert(pool); + memPoolFlushMeters((MemPool *) pool); return pool->meter.inuse.level; } Index: squid/src/MemPoolStats.c =================================================================== RCS file: /cvsroot/squid-sf//squid/src/Attic/MemPoolStats.c,v retrieving revision 1.1.2.13 retrieving revision 1.1.2.14 diff -u -r1.1.2.13 -r1.1.2.14 --- squid/src/MemPoolStats.c 30 Apr 2001 20:24:39 -0000 1.1.2.13 +++ squid/src/MemPoolStats.c 30 Apr 2001 21:15:56 -0000 1.1.2.14 @@ -55,6 +55,7 @@ static void memPoolDescribe(const MemPool * pool); static void memShrink(ssize_t new_limit); static void memPoolReport(const MemPool * pool, int freecount, int partial, StoreEntry * e); +static void memPoolFlushMetersAllPools(void); static double toMB(size_t size) @@ -71,6 +72,7 @@ size_t memPoolsTotalAllocated(void) { + memPoolFlushMetersAllPools(); return TheMeter.alloc.level; }