print max
This commit is contained in:
parent
b3294d905d
commit
5b3d589bf2
@ -1,7 +1,7 @@
|
|||||||
use super::*;
|
use super::*;
|
||||||
use weak_table::PtrWeakHashSet;
|
use weak_table::PtrWeakHashSet;
|
||||||
|
|
||||||
const RECENT_PEERS_TABLE_SIZE: usize = 64;
|
pub const RECENT_PEERS_TABLE_SIZE: usize = 64;
|
||||||
|
|
||||||
pub type EntryCounts = BTreeMap<(RoutingDomain, CryptoKind), usize>;
|
pub type EntryCounts = BTreeMap<(RoutingDomain, CryptoKind), usize>;
|
||||||
//////////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////////
|
||||||
|
@ -687,7 +687,11 @@ impl VeilidAPI {
|
|||||||
// Dump core state
|
// Dump core state
|
||||||
let state = self.get_state().await?;
|
let state = self.get_state().await?;
|
||||||
|
|
||||||
let mut peertable = format!("Recent Peers: {}\n", state.network.peers.len());
|
let mut peertable = format!(
|
||||||
|
"Recent Peers: {} (max {})\n",
|
||||||
|
state.network.peers.len(),
|
||||||
|
RECENT_PEERS_TABLE_SIZE
|
||||||
|
);
|
||||||
for peer in state.network.peers {
|
for peer in state.network.peers {
|
||||||
peertable += &format!(
|
peertable += &format!(
|
||||||
" {} | {} | {} | {} down | {} up\n",
|
" {} | {} | {} | {} down | {} up\n",
|
||||||
|
Loading…
Reference in New Issue
Block a user