mirror of
https://github.com/DNSCrypt/dnscrypt-proxy.git
synced 2025-04-04 13:47:39 +03:00
Set the number of warmup samples to 1 for the RTT estimator
This commit is contained in:
parent
7956ba5b10
commit
cb140673fa
1 changed files with 1 additions and 0 deletions
|
@ -194,6 +194,7 @@ func (serversInfo *ServersInfo) refreshServer(proxy *Proxy, name string, stamp s
|
|||
dlog.Fatalf("[%s] != [%s]", name, newServer.Name)
|
||||
}
|
||||
newServer.rtt = ewma.NewMovingAverage(RTTEwmaDecay)
|
||||
newServer.rtt.SetWarmupSamples(1)
|
||||
newServer.rtt.Set(float64(newServer.initialRtt))
|
||||
isNew = true
|
||||
serversInfo.Lock()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue