Skip to content

Commit cb14067

Browse files
committed
Set the number of warmup samples to 1 for the RTT estimator
1 parent 7956ba5 commit cb14067

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

dnscrypt-proxy/serversInfo.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,7 @@ func (serversInfo *ServersInfo) refreshServer(proxy *Proxy, name string, stamp s
194194
dlog.Fatalf("[%s] != [%s]", name, newServer.Name)
195195
}
196196
newServer.rtt = ewma.NewMovingAverage(RTTEwmaDecay)
197+
newServer.rtt.SetWarmupSamples(1)
197198
newServer.rtt.Set(float64(newServer.initialRtt))
198199
isNew = true
199200
serversInfo.Lock()

0 commit comments

Comments
 (0)