Skip to content

Add Adjusted Status (ASts) column #1555

Open
@fujiapple852

Description

@fujiapple852

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("🟢")
    }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions