提交 2079febd 编写于 作者: S snakejerusalem

Merge pull request #24 from fmrsabino/quorum-fix

Fixed quorum size computation
......@@ -304,8 +304,8 @@ public class ServerViewController extends ViewController {
}
}
this.quorumBFT = (int) Math.ceil((this.currentView.getN() + this.currentView.getF()) / 2);
this.quorumCFT = (int) Math.ceil(this.currentView.getN() / 2);
this.quorumBFT = (int) Math.ceil((this.currentView.getN() + this.currentView.getF()) / 2f);
this.quorumCFT = (int) Math.ceil(this.currentView.getN() / 2f);
} else if (this.currentView != null && this.currentView.isMember(getStaticConf().getProcessId())) {
//TODO: Left the system in newView -> LEAVE
//CODE for LEAVE
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册