Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
client
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
elixxir
client
Commits
7a69cc6b
Commit
7a69cc6b
authored
2 years ago
by
Jono Wenger
Browse files
Options
Downloads
Patches
Plain Diff
fix math
parent
28252323
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!510
Release
,
!432
Control node reg
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bindings/follow.go
+1
-1
1 addition, 1 deletion
bindings/follow.go
with
1 addition
and
1 deletion
bindings/follow.go
+
1
−
1
View file @
7a69cc6b
...
...
@@ -137,7 +137,7 @@ func (c *Cmix) IsReady(percentReady float64) ([]byte, error) {
}
isReady
:=
(
float64
(
numReg
)
/
float64
(
numNodes
))
>=
percentReady
howClose
:=
float64
(
num
Nodes
)
/
(
float64
(
num
Reg
)
*
percentReady
)
howClose
:=
float64
(
num
Reg
)
/
(
float64
(
num
Nodes
)
*
percentReady
)
return
json
.
Marshal
(
&
IsReadyInfo
{
isReady
,
howClose
})
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment