From: wessels <> Date: Fri, 24 Oct 1997 08:49:35 +0000 (+0000) Subject: need to use LOG_UDP_DENIED as array index instead of ICP_OP_DENIED! X-Git-Tag: SQUID_3_0_PRE1~4713 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0ed39362865c5ff9a0fd1467357d2fdb553ca6ef;p=thirdparty%2Fsquid.git need to use LOG_UDP_DENIED as array index instead of ICP_OP_DENIED! Max Okumoto --- diff --git a/src/client_db.cc b/src/client_db.cc index 1ad5c66acd..d39e6e5c6a 100644 --- a/src/client_db.cc +++ b/src/client_db.cc @@ -1,6 +1,6 @@ /* - * $Id: client_db.cc,v 1.17 1997/08/10 04:42:34 wessels Exp $ + * $Id: client_db.cc,v 1.18 1997/10/24 02:49:35 wessels Exp $ * * DEBUG: section 0 Client Database * AUTHOR: Duane Wessels @@ -101,7 +101,7 @@ clientdbDeniedPercent(struct in_addr addr) return 0; if (c->Icp.n_requests > 100) n = c->Icp.n_requests; - return 100 * c->Icp.result_hist[ICP_OP_DENIED] / n; + return 100 * c->Icp.result_hist[LOG_UDP_DENIED] / n; } void