Server now writes a CSV row for each completed test with peer IP, protocol, direction, duration, avg speeds, bytes, and lost packets. Verified on loopback: TX 35 Gbps, RX 51 Gbps captured in CSV. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -354,6 +354,12 @@ async fn handle_client(
|
|||||||
&peer.to_string(), proto_str, dir_str,
|
&peer.to_string(), proto_str, dir_str,
|
||||||
total_tx, total_rx, total_lost, intervals,
|
total_tx, total_rx, total_lost, intervals,
|
||||||
);
|
);
|
||||||
|
if crate::csv_output::is_enabled() {
|
||||||
|
crate::csv_output::write_result(
|
||||||
|
&peer.ip().to_string(), peer.port(), proto_str, dir_str,
|
||||||
|
intervals as u64, total_tx, total_rx, total_lost, auth_type,
|
||||||
|
);
|
||||||
|
}
|
||||||
result.map(|_| ())
|
result.map(|_| ())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user