- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for calculateRangeOffset (0.31 sec)
-
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)