From 0a7a9c294507f98c939ffc690e82f3e2080ce2b5 Mon Sep 17 00:00:00 2001 From: cloudhead Date: Wed, 19 Jun 2024 20:37:36 +0200 Subject: [PATCH] cli: Fix disconnection timestamp It should show since when we've been disconnected. --- radicle-cli/src/commands/node/control.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/radicle-cli/src/commands/node/control.rs b/radicle-cli/src/commands/node/control.rs index 9e486416..5e86a957 100644 --- a/radicle-cli/src/commands/node/control.rs +++ b/radicle-cli/src/commands/node/control.rs @@ -272,10 +272,10 @@ pub fn sessions(node: &Node) -> Result>, 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]);