Open
Description
Add a "Adjusted Status" (ASts
) which accounts for Floss
and Bloss
.
Sketch:
fn render_fstatus_cell(hop: &Hop, is_target: bool) -> Cell<'static> {
let lost = hop.total_sent() - hop.total_recv() - hop.total_backward_loss();
if hop.total_forward_loss() > 0 {
Cell::from("🔴")
} else if lost > 0 {
if is_target {
if lost == hop.total_sent() {
Cell::from("🔴")
} else {
Cell::from("🟡")
}
} else {
Cell::from("🔵")
}
} else {
Cell::from("🟢")
}
}