From 7a69cc6bcfbdd0f25d41f0b7dbe9b6656a509a8f Mon Sep 17 00:00:00 2001
From: Jono Wenger <jono@elixxir.io>
Date: Thu, 27 Oct 2022 10:44:41 -0700
Subject: [PATCH] fix math

---
 bindings/follow.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bindings/follow.go b/bindings/follow.go
index ad1f42019..5d324f2e8 100644
--- a/bindings/follow.go
+++ b/bindings/follow.go
@@ -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})
 }
-- 
GitLab