From aa335e9b7edaf4e4eca52919ab1c9f8721ef2217 Mon Sep 17 00:00:00 2001
From: jbhusson <jonah@elixxir.io>
Date: Mon, 25 Oct 2021 12:29:51 -0400
Subject: [PATCH] Exclude stale nodes from numRegistered
---
api/client.go | 3 +++
1 file changed, 3 insertions(+)
diff --git a/api/client.go b/api/client.go
index 7919c62b8..406efb678 100644
--- a/api/client.go
+++ b/api/client.go
@@ -540,6 +540,9 @@ func (c *Client) GetNodeRegistrationStatus() (int, int, error) {
var numRegistered int
for i, n := range nodes {
+ if n.Status == ndf.Stale {
+ continue
+ }
nid, err := id.Unmarshal(n.ID)
if err != nil {
return 0, 0, errors.Errorf("Failed to unmarshal node ID %v "+
--
GitLab