Skip to content
Snippets Groups Projects
Commit aa335e9b authored by Jonah Husson's avatar Jonah Husson
Browse files

Exclude stale nodes from numRegistered

parent e28a014c
No related branches found
No related tags found
2 merge requests!67Release,!63Exclude stale nodes from numRegistered
...@@ -540,6 +540,9 @@ func (c *Client) GetNodeRegistrationStatus() (int, int, error) { ...@@ -540,6 +540,9 @@ func (c *Client) GetNodeRegistrationStatus() (int, int, error) {
var numRegistered int var numRegistered int
for i, n := range nodes { for i, n := range nodes {
if n.Status == ndf.Stale {
continue
}
nid, err := id.Unmarshal(n.ID) nid, err := id.Unmarshal(n.ID)
if err != nil { if err != nil {
return 0, 0, errors.Errorf("Failed to unmarshal node ID %v "+ return 0, 0, errors.Errorf("Failed to unmarshal node ID %v "+
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment