Skip to content

Commit fb15535

Browse files
committed
Format
1 parent c32aad3 commit fb15535

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

dnscrypt-proxy/serversInfo.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ func (serversInfo *ServersInfo) estimatorUpdate(currentActive int) {
260260
if activeCount == serversCount {
261261
return
262262
}
263-
candidate := rand.Intn(serversCount-activeCount)+activeCount
263+
candidate := rand.Intn(serversCount-activeCount) + activeCount
264264
candidateRtt, currentActiveRtt := serversInfo.inner[candidate].rtt.Value(), serversInfo.inner[currentActive].rtt.Value()
265265
if currentActiveRtt < 0 {
266266
currentActiveRtt = candidateRtt

0 commit comments

Comments
 (0)