Skip to content

Commit a03d0fc

Browse files
committed
adapt to sketch change
1 parent 7ee8611 commit a03d0fc

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

src/metrics.h

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ struct Sketches {
124124
// this number also affects memory usage, by limiting the number of objects tracked
125125
// e.g. up to MAX_FI_MAP_SIZE strings (ints, etc) may be stored per sketch
126126
// note that the actual storage space for the strings is on the heap and not counted here, though.
127-
const uint8_t MIN_FI_MAP_SIZE = 7; // 2^7 = 128
127+
const uint8_t START_FI_MAP_SIZE = 7; // 2^7 = 128
128128
const uint8_t MAX_FI_MAP_SIZE = 13; // 2^13 = 8192
129129

130130
datasketches::kll_sketch<uint64_t> _dnsXactFromTimeUs;
@@ -154,20 +154,20 @@ struct Sketches {
154154
, _net_srcIPCard()
155155
, _net_dstIPCard()
156156
, _dns_qnameCard()
157-
, _dns_topQname2(MIN_FI_MAP_SIZE, MAX_FI_MAP_SIZE)
158-
, _dns_topQname3(MIN_FI_MAP_SIZE, MAX_FI_MAP_SIZE)
159-
, _dns_topNX(MIN_FI_MAP_SIZE, MAX_FI_MAP_SIZE)
160-
, _dns_topREFUSED(MIN_FI_MAP_SIZE, MAX_FI_MAP_SIZE)
161-
, _dns_topSRVFAIL(MIN_FI_MAP_SIZE, MAX_FI_MAP_SIZE)
162-
, _dns_topUDPPort(MIN_FI_MAP_SIZE, MAX_FI_MAP_SIZE)
163-
, _net_topIPv4(MIN_FI_MAP_SIZE, MAX_FI_MAP_SIZE)
164-
, _net_topIPv6(MIN_FI_MAP_SIZE, MAX_FI_MAP_SIZE)
165-
, _dns_topQType(MIN_FI_MAP_SIZE, MAX_FI_MAP_SIZE)
166-
, _dns_topRCode(MIN_FI_MAP_SIZE, MAX_FI_MAP_SIZE)
167-
, _dns_slowXactIn(MIN_FI_MAP_SIZE, MAX_FI_MAP_SIZE)
168-
, _dns_slowXactOut(MIN_FI_MAP_SIZE, MAX_FI_MAP_SIZE)
169-
, _net_topGeoLoc(MIN_FI_MAP_SIZE, MAX_FI_MAP_SIZE)
170-
, _net_topASN(MIN_FI_MAP_SIZE, MAX_FI_MAP_SIZE)
157+
, _dns_topQname2(MAX_FI_MAP_SIZE, START_FI_MAP_SIZE)
158+
, _dns_topQname3(MAX_FI_MAP_SIZE, START_FI_MAP_SIZE)
159+
, _dns_topNX(MAX_FI_MAP_SIZE, START_FI_MAP_SIZE)
160+
, _dns_topREFUSED(MAX_FI_MAP_SIZE, START_FI_MAP_SIZE)
161+
, _dns_topSRVFAIL(MAX_FI_MAP_SIZE, START_FI_MAP_SIZE)
162+
, _dns_topUDPPort(MAX_FI_MAP_SIZE, START_FI_MAP_SIZE)
163+
, _net_topIPv4(MAX_FI_MAP_SIZE, START_FI_MAP_SIZE)
164+
, _net_topIPv6(MAX_FI_MAP_SIZE, START_FI_MAP_SIZE)
165+
, _dns_topQType(MAX_FI_MAP_SIZE, START_FI_MAP_SIZE)
166+
, _dns_topRCode(MAX_FI_MAP_SIZE, START_FI_MAP_SIZE)
167+
, _dns_slowXactIn(MAX_FI_MAP_SIZE, START_FI_MAP_SIZE)
168+
, _dns_slowXactOut(MAX_FI_MAP_SIZE, START_FI_MAP_SIZE)
169+
, _net_topGeoLoc(MAX_FI_MAP_SIZE, START_FI_MAP_SIZE)
170+
, _net_topASN(MAX_FI_MAP_SIZE, START_FI_MAP_SIZE)
171171
{
172172
}
173173
};

0 commit comments

Comments
 (0)