зеркало из https://github.com/mozilla/mig.git
[minor] sleep 100ms between ping attempts to prevent floods
This commit is contained in:
Родитель
a4efd70ac0
Коммит
f350f5a77c
|
@ -119,6 +119,9 @@ func (r Runner) Run(Args []byte) string {
|
|||
r.Results.FoundAnything = true
|
||||
}
|
||||
pr.Latencies = append(pr.Latencies, latency)
|
||||
|
||||
// sleep 100 milliseconds between pings to prevent floods
|
||||
time.Sleep(100 * time.Millisecond)
|
||||
}
|
||||
r.Results.Elements = pr
|
||||
return r.buildResults()
|
||||
|
|
Загрузка…
Ссылка в новой задаче