Skip to content

Commit

Permalink
Fill in HLL data again
Browse files Browse the repository at this point in the history
This was lost when reworking the handling of wkd data to use less
locking (ebf3541).
  • Loading branch information
eest committed May 16, 2024
1 parent a6ea8b0 commit 239e5d6
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions pkg/runner/runner.go
Original file line number Diff line number Diff line change
Expand Up @@ -1963,6 +1963,14 @@ collectorLoop:
wkd.m[wu.dawgIndex].OtherRcodeCount += wu.OtherRcodeCount
wkd.m[wu.dawgIndex].NonINCount += wu.NonINCount

if wu.ip.IsValid() {
if wu.ip.Unmap().Is4() {
wkd.m[wu.dawgIndex].v4ClientHLL.AddRaw(wu.hllHash)
} else {
wkd.m[wu.dawgIndex].v6ClientHLL.AddRaw(wu.hllHash)
}
}

case ts := <-ticker.C:
// We want to tick at the start of each minute
ticker.Reset(timeUntilNextMinute())
Expand Down

0 comments on commit 239e5d6

Please sign in to comment.