Fix peer sent bytes

Signed-off-by: Lee Smet <lee.smet@hotmail.com>
This commit is contained in:
Lee Smet
2025-09-25 13:43:17 +02:00
parent de90821caa
commit fc8ad40ea7
2 changed files with 6 additions and 1 deletions
+5
View File
@@ -7,6 +7,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased]
### Fixed
- Return actuall amount of bytes sent to peers instead of the amount of bytes received
from them.
## [0.6.2] - 2025-09-19
**IMPORTANT**
+1 -1
View File
@@ -146,7 +146,7 @@ impl PeerInfo {
/// Return the amount of bytes written to this peer.
#[inline]
fn written(&self) -> u64 {
self.con_traffic.rx_bytes.load(Ordering::Relaxed)
self.con_traffic.tx_bytes.load(Ordering::Relaxed)
}
}