From: wessels <> Date: Sun, 26 Jul 1998 12:39:25 +0000 (+0000) Subject: fixup storeMaintainSwapSpace counters X-Git-Tag: SQUID_3_0_PRE1~2968 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d150898abe26c5b9505dcad3be64856e091a1b7a;p=thirdparty%2Fsquid.git fixup storeMaintainSwapSpace counters --- diff --git a/src/store.cc b/src/store.cc index 70cbb872e8..0046d82071 100644 --- a/src/store.cc +++ b/src/store.cc @@ -1,6 +1,6 @@ /* - * $Id: store.cc,v 1.436 1998/07/25 17:48:33 wessels Exp $ + * $Id: store.cc,v 1.437 1998/07/26 06:39:25 wessels Exp $ * * DEBUG: section 20 Storage Manager * AUTHOR: Harvest Derived @@ -600,6 +600,7 @@ storeMaintainSwapSpace(void *datanotused) for (m = store_list.tail; m; m = prev) { prev = m->prev; e = m->data; + scanned++; if (storeEntryLocked(e)) { /* * If there is a locked entry at the tail of the LRU list, @@ -617,9 +618,9 @@ storeMaintainSwapSpace(void *datanotused) expired++; storeRelease(e); } - if (expired > max_remove) + if (expired >= max_remove) break; - if (++scanned > max_scan) + if (scanned >= max_scan) break; } debug(20, 3) ("storeMaintainSwapSpace stats:\n");