dnsfilter metrics -- parental cache hits were counted as safebrowsing cache hits

This commit is contained in:
Eugene Bujak 2018-09-07 15:46:38 +03:00
parent 74275bebdc
commit c572c7b0e9
1 changed files with 1 additions and 1 deletions

View File

@ -563,7 +563,7 @@ func (d *Dnsfilter) lookupCommon(host string, lookupstats *LookupStats, cache gc
// check cache
cachedValue, isFound, err := getCachedReason(cache, host)
if isFound {
atomic.AddUint64(&stats.Safebrowsing.CacheHits, 1)
atomic.AddUint64(&lookupstats.CacheHits, 1)
return cachedValue, nil
}
if err != nil {