Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for calculateRangeOffset (0.31 sec)

  1. pkg/registry/core/service/portallocator/allocator.go

    	r.metrics = &metricsRecorder{}
    }
    
    // calculateRangeOffset estimates the offset used on the range for statically allocation based on
    // the following formula `min(max($min, rangeSize/$step), $max)`, described as ~never less than
    // $min or more than $max, with a graduated step function between them~. The function returns 0
    // if any of the parameters is invalid.
    func calculateRangeOffset(pr net.PortRange) int {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 08 07:15:02 UTC 2024
    - 7.4K bytes
    - Viewed (0)
Back to top