- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for failPct (0.05 sec)
-
cmd/dynamic-timeouts.go
failures, max := 0, time.Duration(0) for _, dur := range entries[:] { if dur == maxDuration { failures++ } else if dur > max { max = dur } } failPct := float64(failures) / float64(len(entries)) if failPct > dynamicTimeoutIncreaseThresholdPct { // We are hitting the timeout too often, so increase the timeout by 25% timeout := atomic.LoadInt64(&dt.timeout) * 125 / 100 // Set upper cap.
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Fri Aug 19 23:21:05 UTC 2022 - 4.5K bytes - Viewed (0)