summaryrefslogtreecommitdiff
path: root/node/Topology.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'node/Topology.cpp')
-rw-r--r--node/Topology.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/node/Topology.cpp b/node/Topology.cpp
index 09668ef5..9027eff1 100644
--- a/node/Topology.cpp
+++ b/node/Topology.cpp
@@ -308,7 +308,7 @@ void Topology::clean(uint64_t now)
}
}
-unsigned long Topology::countAlive() const
+unsigned long Topology::countActive() const
{
const uint64_t now = RR->node->now();
unsigned long cnt = 0;
@@ -317,7 +317,7 @@ unsigned long Topology::countAlive() const
Address *a = (Address *)0;
SharedPtr<Peer> *p = (SharedPtr<Peer> *)0;
while (i.next(a,p)) {
- if ((*p)->alive(now))
+ if ((*p)->hasActiveDirectPath(now))
++cnt;
}
return cnt;