Skip to content

Commit

Permalink
fix(tui): AS information incorrectly rendered in host details line
Browse files Browse the repository at this point in the history
  • Loading branch information
fujiapple852 committed Oct 14, 2024
1 parent 681c730 commit 8330628
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions crates/trippy-tui/src/frontend/render/table.rs
Original file line number Diff line number Diff line change
Expand Up @@ -631,8 +631,8 @@ fn fmt_details_line(
(false, _) => format!(
"AS {}: <{}>\nAS {}: <{}>",
t!("name"),
t!("info"),
t!("not_enabled"),
t!("info"),
t!("not_enabled")
),
(true, None) => format!(
Expand All @@ -646,17 +646,17 @@ fn fmt_details_line(
format!(
"AS {}: <{}>\nAS {}: <{}>",
t!("name"),
t!("info"),
t!("not_found"),
t!("info"),
t!("not_found")
)
}
(true, Some(info)) => format!(
"AS {}: AS{} {}\nAS {}: {} {} {}",
t!("name"),
t!("info"),
info.asn,
info.name,
t!("info"),
info.prefix,
info.registry,
info.allocated
Expand Down

0 comments on commit 8330628

Please sign in to comment.