Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for react (0.14 sec)

  1. cmd/erasure-server-pool.go

    	serverPools.FilterMaxUsed(100 - (100 * diskReserveFraction))
    	total := serverPools.TotalAvailable()
    	if total == 0 {
    		return -1
    	}
    	// choose when we reach this many
    	choose := rand.Uint64() % total
    	atTotal := uint64(0)
    	for _, pool := range serverPools {
    		atTotal += pool.Available
    		if atTotal > choose && pool.Available > 0 {
    			return pool.Index
    		}
    	}
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Fri Apr 19 16:44:59 GMT 2024
    - 77.8K bytes
    - Viewed (0)
Back to top