Commit 6f34be30 authored by Tim Hockin's avatar Tim Hockin

Limit float precision to 5 points

parent 7e9c685b
......@@ -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))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment