Skip to content
Snippets Groups Projects
Commit 7a69cc6b authored by Jono Wenger's avatar Jono Wenger
Browse files

fix math

parent 28252323
No related branches found
No related tags found
2 merge requests!510Release,!432Control node reg
......@@ -137,7 +137,7 @@ func (c *Cmix) IsReady(percentReady float64) ([]byte, error) {
}
isReady := (float64(numReg) / float64(numNodes)) >= percentReady
howClose := float64(numNodes) / (float64(numReg) * percentReady)
howClose := float64(numReg) / (float64(numNodes) * percentReady)
return json.Marshal(&IsReadyInfo{isReady, howClose})
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment