We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c32aad3 commit fb15535Copy full SHA for fb15535
1 file changed
dnscrypt-proxy/serversInfo.go
@@ -260,7 +260,7 @@ func (serversInfo *ServersInfo) estimatorUpdate(currentActive int) {
260
if activeCount == serversCount {
261
return
262
}
263
- candidate := rand.Intn(serversCount-activeCount)+activeCount
+ candidate := rand.Intn(serversCount-activeCount) + activeCount
264
candidateRtt, currentActiveRtt := serversInfo.inner[candidate].rtt.Value(), serversInfo.inner[currentActive].rtt.Value()
265
if currentActiveRtt < 0 {
266
currentActiveRtt = candidateRtt
0 commit comments