mirror of
https://github.com/LibreQoE/LibreQoS.git
synced 2025-02-25 18:55:32 -06:00
Fixup accidental root links
This commit is contained in:
parent
3d52f2f33e
commit
1a600c2929
@ -20,13 +20,6 @@ pub fn walk_tree_for_routing(
|
||||
root_site: &str,
|
||||
overrides: &Vec<RouteOverride>,
|
||||
) -> Result<(), UispIntegrationError> {
|
||||
// Make sure that parent indices go both ways
|
||||
let parent_map = sites.iter().enumerate().map(|(i,s)| (i, s.parent_indices.clone())).collect::<HashMap<usize, HashSet<usize>>>();
|
||||
for (i, site) in parent_map {
|
||||
for parent in site.iter() {
|
||||
sites[*parent].parent_indices.insert(i);
|
||||
}
|
||||
}
|
||||
|
||||
// Initialize the visualization
|
||||
let mut dot_graph = "digraph G {\n graph [ ranksep=2.0 overlap=false ]\n".to_string();
|
||||
|
Loading…
Reference in New Issue
Block a user