Merge pull request #360 from KevinT3Hu/main

fix: make SessionStatsSnapshot fields pub
This commit is contained in:
Igor Katson 2025-04-13 17:32:27 +09:00 committed by GitHub
commit 77c0cc98d1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -8,12 +8,12 @@ use super::SessionStats;
#[derive(Debug, Serialize)]
pub struct SessionStatsSnapshot {
fetched_bytes: u64,
uploaded_bytes: u64,
download_speed: Speed,
upload_speed: Speed,
peers: AggregatePeerStats,
uptime_seconds: u64,
pub fetched_bytes: u64,
pub uploaded_bytes: u64,
pub download_speed: Speed,
pub upload_speed: Speed,
pub peers: AggregatePeerStats,
pub uptime_seconds: u64,
}
impl From<&SessionStats> for SessionStatsSnapshot {