From: wessels <> Date: Fri, 21 Aug 1998 13:37:24 +0000 (+0000) Subject: fix reporting entry clients; was still using old array approach X-Git-Tag: SQUID_3_0_PRE1~2816 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=996d61101356eb9631b5cfb9d624b3b656c2f1be;p=thirdparty%2Fsquid.git fix reporting entry clients; was still using old array approach --- diff --git a/src/stat.cc b/src/stat.cc index 9e646e150f..f3115d957e 100644 --- a/src/stat.cc +++ b/src/stat.cc @@ -1,6 +1,6 @@ /* - * $Id: stat.cc,v 1.279 1998/08/20 22:30:02 wessels Exp $ + * $Id: stat.cc,v 1.280 1998/08/21 07:37:24 wessels Exp $ * * DEBUG: section 18 Cache Manager Statistics * AUTHOR: Harvest Derived @@ -269,8 +269,7 @@ statStoreEntry(StoreEntry * s, StoreEntry * e) (int) mem->swapout.done_offset, (int) mem->swapout.queue_offset, mem->swapout.fd); - for (i = 0; i < mem->nclients; i++) { - sc = &mem->clients[i]; + for (i=0, sc = &mem->clients[i]; sc != NULL; sc = sc->next, i++) { if (sc->callback_data == NULL) continue; storeAppendPrintf(s, "\tClient #%d\n", i);