Skip to content

Commit 3cda60b

Browse files
authored
style: Typo (#10719)
style: Typo Co-authored-by: brice.dutheil <brice.dutheil@datadoghq.com>
1 parent d23be49 commit 3cda60b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

dd-trace-core/src/main/java/datadog/trace/common/writer/ddagent/GenerationalUtf8Cache.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ public final class GenerationalUtf8Cache implements EncodingCache {
7474
private static final int MAX_EDEN_PROBES = 4;
7575
private static final int MAX_TENURED_PROBES = 8;
7676

77-
private static final int MIN_PROMOTION_TRESHOLD = 2;
77+
private static final int MIN_PROMOTION_THRESHOLD = 2;
7878
private static final int INITIAL_PROMOTION_THRESHOLD = 16;
7979

8080
private static final double SCORE_DECAY = 0.5D;
@@ -169,7 +169,7 @@ public synchronized void recalibrate(long accessTimeMs) {
169169
recalibrate(this.tenuredEntries);
170170

171171
int totalPromotions = this.promotions + this.earlyPromotions;
172-
if (totalPromotions == 0 && this.promotionThreshold >= MIN_PROMOTION_TRESHOLD) {
172+
if (totalPromotions == 0 && this.promotionThreshold >= MIN_PROMOTION_THRESHOLD) {
173173
this.promotionThreshold /= PROMOTION_THRESHOLD_ADJ_FACTOR;
174174
} else if (totalPromotions > this.tenuredEvictions / 2) {
175175
this.promotionThreshold *= PROMOTION_THRESHOLD_ADJ_FACTOR;

0 commit comments

Comments
 (0)