mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-21 19:01:49 +00:00
Limit float precision to 5 points
This commit is contained in:
parent
7e9c685ba6
commit
6f34be30a3
@ -652,7 +652,7 @@ func (proxier *Proxier) syncProxyRules() error {
|
||||
args = append(args,
|
||||
"-m", "statistic",
|
||||
"--mode", "random",
|
||||
"--probability", fmt.Sprintf("%f", 1.0/float64(n-i)))
|
||||
"--probability", fmt.Sprintf("%0.5f", 1.0/float64(n-i)))
|
||||
}
|
||||
// The final (or only if n == 1) rule is a guaranteed match.
|
||||
args = append(args, "-j", string(endpointChain))
|
||||
|
Loading…
Reference in New Issue
Block a user