- Sort Score
- Num 10 results
- Language All
Results 1 - 2 of 2 for max_sleep (0.06 seconds)
-
internal/config/heal/heal.go
"strings" "sync" "time" "github.com/minio/minio/internal/config" "github.com/minio/pkg/v3/env" ) // Compression environment variables const ( Bitrot = "bitrotscan" Sleep = "max_sleep" IOCount = "max_io" DriveWorkers = "drive_workers" EnvBitrot = "MINIO_HEAL_BITROTSCAN" EnvSleep = "MINIO_HEAL_MAX_SLEEP" EnvIOCount = "MINIO_HEAL_MAX_IO"
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Mon Nov 04 19:06:02 GMT 2024 - 4.9K bytes - Click Count (0) -
internal/dsync/utils.go
"time" ) func backoffWait(minSleep, unit, maxSleep time.Duration) func(*rand.Rand, uint) time.Duration { if unit > time.Hour { // Protect against integer overflow panic("unit cannot exceed one hour") } return func(r *rand.Rand, attempt uint) time.Duration { sleep := minSleep sleep += unit * time.Duration(attempt) if sleep > maxSleep { sleep = maxSleep } sleep -= time.Duration(r.Float64() * float64(sleep))
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Mon Nov 11 14:51:43 GMT 2024 - 1.2K bytes - Click Count (0)