From 139c4b56337c0cfe7458ecf5df4e12e38c2d4f8a Mon Sep 17 00:00:00 2001 From: Adam Ierymenko Date: Fri, 14 Apr 2017 17:53:32 -0700 Subject: Significant simplification to path logic. --- node/Topology.hpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'node/Topology.hpp') diff --git a/node/Topology.hpp b/node/Topology.hpp index 4870ab5e..d29c424e 100644 --- a/node/Topology.hpp +++ b/node/Topology.hpp @@ -314,7 +314,9 @@ public: Address *a = (Address *)0; SharedPtr *p = (SharedPtr *)0; while (i.next(a,p)) { - cnt += (unsigned long)((*p)->hasActiveDirectPath(now)); + const SharedPtr pp((*p)->getBestPath(now,false)); + if ((pp)&&(pp->alive(now))) + ++cnt; } return cnt; } -- cgit v1.2.3