diff --git a/src/main.rs b/src/main.rs index 88843c6..efa6305 100644 --- a/src/main.rs +++ b/src/main.rs @@ -516,7 +516,6 @@ impl Router { )); seen.insert(start_sys.id); while !(queue.is_empty() || found) { - std::io::stdout().flush().unwrap(); while let Some((_, _, depth, sys)) = queue.pop() { if depth > maxd { maxd = depth; @@ -528,6 +527,7 @@ impl Router { seen.len(), ((seen.len() * 100) as f32) / total ); + std::io::stdout().flush().unwrap(); } if sys.id == goal_sys.id { found = true;