mirror of
https://github.com/YGGverse/aquatic.git
synced 2026-04-02 10:45:30 +00:00
udp: statistics: show number of peers
This commit is contained in:
parent
59e95894b9
commit
c78716153b
3 changed files with 23 additions and 1 deletions
|
|
@ -234,6 +234,8 @@ pub struct Statistics {
|
|||
pub bytes_sent: AtomicUsize,
|
||||
pub torrents_ipv4: Vec<AtomicUsize>,
|
||||
pub torrents_ipv6: Vec<AtomicUsize>,
|
||||
pub peers_ipv4: Vec<AtomicUsize>,
|
||||
pub peers_ipv6: Vec<AtomicUsize>,
|
||||
}
|
||||
|
||||
impl Statistics {
|
||||
|
|
@ -245,6 +247,8 @@ impl Statistics {
|
|||
bytes_sent: Default::default(),
|
||||
torrents_ipv4: Self::create_atomic_usize_vec(num_request_workers),
|
||||
torrents_ipv6: Self::create_atomic_usize_vec(num_request_workers),
|
||||
peers_ipv4: Self::create_atomic_usize_vec(num_request_workers),
|
||||
peers_ipv6: Self::create_atomic_usize_vec(num_request_workers),
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue