Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for FilterMaxUsed (0.22 sec)

  1. cmd/erasure-server-pool.go

    	total := uint64(0)
    	for _, z := range p {
    		total += z.Available
    	}
    	return total
    }
    
    // FilterMaxUsed will filter out any pools that has used percent bigger than max,
    // unless all have that, in which case all are preserved.
    func (p serverPoolsAvailableSpace) FilterMaxUsed(max int) {
    	// We aren't modifying p, only entries in it, so we don't need to receive a pointer.
    	if len(p) <= 1 {
    		// Nothing to do.
    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