mirror of
https://github.com/EasyTier/EasyTier.git
synced 2026-05-07 02:09:06 +00:00
fix tests (#588)
fix proxy_three_node_disconnect_test and hole_punching_symmetric_only_random
This commit is contained in:
@@ -9,6 +9,16 @@ pub struct WindowLatency {
|
||||
count: AtomicU32,
|
||||
}
|
||||
|
||||
impl std::fmt::Debug for WindowLatency {
|
||||
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
||||
f.debug_struct("WindowLatency")
|
||||
.field("count", &self.count)
|
||||
.field("window_size", &self.latency_us_window_size)
|
||||
.field("window_latency", &self.get_latency_us::<u32>())
|
||||
.finish()
|
||||
}
|
||||
}
|
||||
|
||||
impl WindowLatency {
|
||||
pub fn new(window_size: u32) -> Self {
|
||||
Self {
|
||||
@@ -48,7 +58,7 @@ impl WindowLatency {
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Default, Copy, Clone)]
|
||||
#[derive(Default, Copy, Clone, Debug)]
|
||||
pub struct Throughput {
|
||||
tx_bytes: u64,
|
||||
rx_bytes: u64,
|
||||
|
||||
Reference in New Issue
Block a user