mirror of
https://github.com/DNSCrypt/dnscrypt-proxy.git
synced 2025-04-05 14:17:36 +03:00
Format
This commit is contained in:
parent
c32aad3dfd
commit
fb15535282
1 changed files with 1 additions and 1 deletions
|
@ -260,7 +260,7 @@ func (serversInfo *ServersInfo) estimatorUpdate(currentActive int) {
|
|||
if activeCount == serversCount {
|
||||
return
|
||||
}
|
||||
candidate := rand.Intn(serversCount-activeCount)+activeCount
|
||||
candidate := rand.Intn(serversCount-activeCount) + activeCount
|
||||
candidateRtt, currentActiveRtt := serversInfo.inner[candidate].rtt.Value(), serversInfo.inner[currentActive].rtt.Value()
|
||||
if currentActiveRtt < 0 {
|
||||
currentActiveRtt = candidateRtt
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue