From: wessels <> Date: Fri, 3 Apr 1998 05:58:14 +0000 (+0000) Subject: Fix DnsStats.replies to count full replies, not just read()s! X-Git-Tag: SQUID_3_0_PRE1~3644 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=fe522163ec6c0c03d1c742715b681e850ad1de0e;p=thirdparty%2Fsquid.git Fix DnsStats.replies to count full replies, not just read()s! --- diff --git a/src/fqdncache.cc b/src/fqdncache.cc index 385b1b9f51..1df556967e 100644 --- a/src/fqdncache.cc +++ b/src/fqdncache.cc @@ -1,6 +1,6 @@ /* - * $Id: fqdncache.cc,v 1.96 1998/03/29 08:50:58 wessels Exp $ + * $Id: fqdncache.cc,v 1.97 1998/04/02 22:58:14 wessels Exp $ * * DEBUG: section 35 FQDN Cache * AUTHOR: Harvest Derived @@ -451,7 +451,6 @@ fqdncache_dnsHandleRead(int fd, void *data) return; } n = ++FqdncacheStats.replies; - DnsStats.replies++; dnsData->offset += len; dnsData->ip_inbuf[dnsData->offset] = '\0'; f = dnsData->data; @@ -459,6 +458,7 @@ fqdncache_dnsHandleRead(int fd, void *data) fatal_dump("fqdncache_dnsHandleRead: bad status"); if (strstr(dnsData->ip_inbuf, "$end\n")) { /* end of record found */ + DnsStats.replies++; statHistCount(&Counter.dns.svc_time, tvSubMsec(dnsData->dispatch_time, current_time)); if ((x = fqdncache_parsebuffer(dnsData->ip_inbuf, dnsData)) == NULL) {