Skip to content

Commit

Permalink
fix(tui): off-by-one error for privacy ttl on the world map
Browse files Browse the repository at this point in the history
note that bug was introduced in #1366 which has not been released
  • Loading branch information
fujiapple852 committed Dec 1, 2024
1 parent 508a992 commit 8118e45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/trippy-tui/src/frontend/render/world.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ fn render_map_canvas(f: &mut Frame<'_>, app: &TuiApp, rect: Rect, entries: &[Map
let any_show = entry
.hops
.iter()
.any(|hop| Some(*hop) >= app.tui_config.privacy_max_ttl);
.any(|hop| Some(*hop) > app.tui_config.privacy_max_ttl);
if any_show {
render_map_canvas_pin(ctx, entry);
render_map_canvas_radius(ctx, entry, theme.map_radius);
Expand Down

0 comments on commit 8118e45

Please sign in to comment.