We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1d893d5 commit 7811ab0Copy full SHA for 7811ab0
1 file changed
java-spanner/google-cloud-spanner/src/main/java/com/google/cloud/spanner/spi/v1/EwmaLatencyTracker.java
@@ -127,7 +127,7 @@ public void recordError(Duration penalty) {
127
private double calculateTimeBasedAlpha(long nowNanos) {
128
long deltaNanos = nowNanos - lastUpdatedAtNanos;
129
if (deltaNanos <= 0L) {
130
- // concurrent or future samples get full weight.
+ // Concurrent or future samples get full weight
131
return 1.0;
132
}
133
double alpha = 1.0 - Math.exp(-(double) deltaNanos / (double) tauNanos);
0 commit comments