aboutsummaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2023-08-27 15:58:47 +0200
committerAlex Auvolat <alex@adnab.me>2023-08-27 15:58:47 +0200
commita3602eac8294fb847912fc084e8943587da7ef56 (patch)
treecd8775cd530779b59e611fd1248c6f0248d1b564 /src/main.rs
parentb5e8d1fcd800330edfc4e8deed5229d172ec1248 (diff)
downloadtricot-a3602eac8294fb847912fc084e8943587da7ef56.tar.gz
tricot-a3602eac8294fb847912fc084e8943587da7ef56.zip
Take into account unhealthy nodes
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs
index f84d973..80c5b1e 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -245,7 +245,13 @@ async fn dump_config_on_change(
for ((host, prefix), ents) in cfg_map.iter_mut() {
println!("{}{}:", host, prefix.as_deref().unwrap_or_default());
for ent in ents.iter() {
- println!(" {}", ent);
+ print!(" ");
+ if !ent.flags.healthy {
+ print!("/!\\ ");
+ } else {
+ print!(" ");
+ }
+ println!("{}", ent);
}
}
println!();