summaryrefslogtreecommitdiff
path: root/node/Cluster.cpp
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2015-10-28 14:29:08 -0700
committerAdam Ierymenko <adam.ierymenko@gmail.com>2015-10-28 14:29:08 -0700
commit68d6d3c4ff4d3921408f7d9bab3e31e0e028a871 (patch)
tree00fe28018eeea7c76645cebfc0570f68757212d0 /node/Cluster.cpp
parent4c24e0cfb0bb9b61a4e19ac81b89dc1cbce6ea99 (diff)
downloadinfinitytier-68d6d3c4ff4d3921408f7d9bab3e31e0e028a871.tar.gz
infinitytier-68d6d3c4ff4d3921408f7d9bab3e31e0e028a871.zip
Fix bug in peer count.
Diffstat (limited to 'node/Cluster.cpp')
-rw-r--r--node/Cluster.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/node/Cluster.cpp b/node/Cluster.cpp
index 9b034822..e95f6acc 100644
--- a/node/Cluster.cpp
+++ b/node/Cluster.cpp
@@ -634,7 +634,7 @@ void Cluster::status(ZT_ClusterStatus &status) const
ms[_id]->x = _x;
ms[_id]->y = _y;
ms[_id]->z = _z;
- ms[_id]->peers = RR->topology->countAlive();
+ ms[_id]->peers = RR->topology->countActive();
for(std::vector<InetAddress>::const_iterator ep(_zeroTierPhysicalEndpoints.begin());ep!=_zeroTierPhysicalEndpoints.end();++ep) {
if (ms[_id]->numZeroTierPhysicalEndpoints >= ZT_CLUSTER_MAX_ZT_PHYSICAL_ADDRESSES) // sanity check
break;