1
0
mirror of https://github.com/tonarino/innernet.git synced 2024-11-28 08:58:37 +02:00

client: fix logical inverse in is_recently_connected indicator

thanks @strohel!!
This commit is contained in:
Jake McGinty 2021-09-14 22:33:49 +09:00
parent 2a640fd9b2
commit 7ceebccbfa

View File

@ -1006,7 +1006,7 @@ fn print_peer(peer: &PeerState, short: bool, level: usize) {
let PeerState { peer, info } = peer;
if short {
let connected = info
.map(|info| !info.is_recently_connected())
.map(|info| info.is_recently_connected())
.unwrap_or_default();
println_pad!(