]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
need to use LOG_UDP_DENIED as array index instead of ICP_OP_DENIED!
authorwessels <>
Fri, 24 Oct 1997 08:49:35 +0000 (08:49 +0000)
committerwessels <>
Fri, 24 Oct 1997 08:49:35 +0000 (08:49 +0000)
Max Okumoto

src/client_db.cc

index 1ad5c66acd73be422e8136ea29cd4efc5751bb3a..d39e6e5c6a57026e5d74407f582a2121c1aff233 100644 (file)
@@ -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