Radish alpha
h
Radicle Heartwood Protocol & Stack
Radicle
Git (anonymous pull)
Log in to clone via SSH
cli: Fix disconnection timestamp
cloudhead committed 1 year ago
commit 0a7a9c294507f98c939ffc690e82f3e2080ce2b5
parent dd7a0b3524923fcf51f0b93daa598fa76c529e99
1 file changed +2 -2
modified radicle-cli/src/commands/node/control.rs
@@ -272,10 +272,10 @@ pub fn sessions(node: &Node) -> Result<Option<term::Table<4, term::Label>>, node
                term::Label::from(term::format::positive("connected")),
                term::format::dim(now - since).into(),
            ),
-
            node::State::Disconnected { retry_at, .. } => (
+
            node::State::Disconnected { since, .. } => (
                sess.addr.to_string().into(),
                term::Label::from(term::format::negative("disconnected")),
-
                term::format::dim(retry_at - now).into(),
+
                term::format::dim(now - since).into(),
            ),
        };
        table.push([nid, addr, state, time]);