From 15595d6f2304736bec8cc47082fa1d25aa7ba894 Mon Sep 17 00:00:00 2001 From: Jake McGinty Date: Fri, 21 May 2021 03:03:44 +0900 Subject: [PATCH] client: count handshakes within 3 minutes as 'online' --- client/src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/main.rs b/client/src/main.rs index c9aea85..73e9479 100644 --- a/client/src/main.rs +++ b/client/src/main.rs @@ -862,7 +862,7 @@ fn print_peer(peer: &PeerState, short: bool, level: usize) { .and_then(|t| t.elapsed().ok()) .unwrap_or_else(|| SystemTime::UNIX_EPOCH.elapsed().unwrap()); - let online = last_handshake <= Duration::from_secs(150) || info.is_none(); + let online = last_handshake <= Duration::from_secs(180) || info.is_none(); println_pad!( pad,