@@ -28,7 +28,7 @@ Summary::Summary(
2828 " {} bytes" ,
2929 flow->get_id (), conn_id, sent.value (), delivered.value ()));
3030 }
31- double overhead = (sent.value ()/ delivered.value () - 1 ) * 100 ;
31+ double overhead = (sent.value () / delivered.value () - 1 ) * 100 ;
3232
3333 const TimeNs fct = flow->get_fct ();
3434 SizeByte packet_size = flow->get_packet_size ();
@@ -40,9 +40,9 @@ Summary::Summary(
4040 SizeByte retransmit_size = retransmit_count * packet_size;
4141
4242 m_values[conn_id][flow->get_id ()] =
43- FlowSummary{sent, delivered, packet_size,
44- overhead, retransmit_size, retransmit_count,
45- sending_rate, throughput, fct};
43+ FlowSummary{sent, delivered, packet_size,
44+ overhead, retransmit_size, retransmit_count,
45+ sending_rate, throughput, fct};
4646 }
4747 if (expt_data_delivery > real_data_delivery) {
4848 m_errors.emplace_back (fmt::format (
@@ -74,9 +74,11 @@ void Summary::write_to_csv(std::filesystem::path& output_path) const {
7474 }
7575 }
7676 out.close ();
77+ }
78+
79+ void Summary::check () const {
7780 if (!m_errors.empty ()) {
7881 throw std::runtime_error (fmt::format (" {}" , fmt::join (m_errors, " \n " )));
7982 }
8083}
81-
8284} // namespace sim
0 commit comments