Add a struct for session stats + bump the counters

This commit is contained in:
Igor Katson 2024-08-21 11:22:37 +01:00
parent ee2ad7138e
commit 67afdb0aa5
No known key found for this signature in database
GPG key ID: B4EC22B66D61A3F5
8 changed files with 96 additions and 31 deletions

View file

@ -0,0 +1,10 @@
use std::sync::atomic::AtomicU64;
use crate::torrent_state::live::peers::stats::atomic::AggregatePeerStatsAtomic;
#[derive(Default, Debug)]
pub struct AtomicSessionStats {
pub fetched_bytes: AtomicU64,
pub uploaded_bytes: AtomicU64,
pub peers: AggregatePeerStatsAtomic,
}

View file

@ -0,0 +1 @@
pub mod atomic;