Skip to content

Commit c3ee3f1

Browse files
authored
Fix LatencyAwarePolicy scale docstring (#1671)
A parenthesis was too far to the right.
1 parent a9f13f4 commit c3ee3f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

driver-core/src/main/java/com/datastax/driver/core/policies/LatencyAwarePolicy.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -709,7 +709,7 @@ public Builder withExclusionThreshold(double exclusionThreshold) {
709709
*
710710
* <pre>{@code d = (t - t') / scale
711711
* alpha = 1 - (ln(d+1) / d)
712-
* avg = alpha * l + (1 - alpha * prev)}</pre>
712+
* avg = alpha * l + (1 - alpha) * prev}</pre>
713713
*
714714
* Typically, with a {@code scale} of 100 milliseconds (the default), if a new latency is
715715
* measured and the previous measure is 10 millisecond old (so {@code d=0.1}), then {@code

0 commit comments

Comments
 (0)