client: count handshakes within 3 minutes as 'online'

pull/92/head
Jake McGinty 2021-05-21 03:03:44 +09:00
parent e2011b4260
commit 15595d6f23
1 changed files with 1 additions and 1 deletions

View File

@ -862,7 +862,7 @@ fn print_peer(peer: &PeerState, short: bool, level: usize) {
.and_then(|t| t.elapsed().ok()) .and_then(|t| t.elapsed().ok())
.unwrap_or_else(|| SystemTime::UNIX_EPOCH.elapsed().unwrap()); .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!( println_pad!(
pad, pad,