Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for maxCnt (0.04 sec)

  1. cmd/erasure-server-pool.go

    	if globalIsDistErasure {
    		n = 2048
    	}
    
    	// Avoid allocating more than half of the available memory
    	if maxN := availableMemory() / (blockSizeV2 * 2); n > maxN {
    		n = maxN
    	}
    
    	if globalIsCICD || strconv.IntSize == 32 {
    		n = 256 // 256MiB for CI/CD environments is sufficient or on 32bit platforms.
    	}
    
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 89.1K bytes
    - Viewed (0)
  2. cmd/test-utils_test.go

    }
    
    // fetches a random number between range min-max.
    func getRandomRange(minN, maxN int, seed int64) int {
    	// special value -1 means no explicit seeding.
    	if seed == -1 {
    		return rand.New(rand.NewSource(time.Now().UnixNano())).Intn(maxN-minN) + minN
    	}
    	return rand.New(rand.NewSource(seed)).Intn(maxN-minN) + minN
    }
    
    // Randomizes the order of bytes in the byte array
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 77K bytes
    - Viewed (0)
Back to top