From 1153a1fbf52ffcaa4f65c1ddf2ebfab28f8f2e9b Mon Sep 17 00:00:00 2001 From: Robert Ricci Date: Mon, 6 Oct 2003 18:11:18 +0000 Subject: [PATCH] Fix a bug in the mapping precheck that was allowing nodes with too many links to slip by unnoticed. --- assign/assign.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assign/assign.cc b/assign/assign.cc index ee485731d..f96efda8d 100644 --- a/assign/assign.cc +++ b/assign/assign.cc @@ -437,7 +437,7 @@ int mapping_precheck() { // 'interfaces' due to the fact that it can have interswitch // links if ((pnode->total_interfaces >= v->num_links) || - pnode->current_type.compare("switch")) { + (!pnode->current_type.compare("switch"))) { matched_links++; } else { potential_match = false; -- GitLab