fix bit rate plotting in CSV metrics

master
Andre Puschmann 5 years ago
parent 0408d357a7
commit 69d9914e0a

@ -103,8 +103,7 @@ void metrics_csv::set_metrics(const ue_metrics_t& metrics, const uint32_t period
file << float_to_string(metrics.phy.dl[r].mcs, 2);
file << float_to_string(metrics.phy.dl[r].sinr, 2);
file << float_to_string(metrics.phy.dl[r].turbo_iters, 2);
file << float_to_string(metrics.stack.mac[r].rx_brate / period_usec * 1e6, 2);
file << float_to_string(metrics.stack.mac[r].rx_brate / (float)period_usec * 1e6f, 2);
int rx_pkts = metrics.stack.mac[r].rx_pkts;
int rx_errors = metrics.stack.mac[r].rx_errors;
@ -118,7 +117,7 @@ void metrics_csv::set_metrics(const ue_metrics_t& metrics, const uint32_t period
file << float_to_string(metrics.phy.ul[r].mcs, 2);
file << float_to_string((float)metrics.stack.mac[r].ul_buffer, 2);
file << float_to_string(metrics.stack.mac[r].tx_brate / period_usec * 1e6, 2);
file << float_to_string(metrics.stack.mac[r].tx_brate / (float)period_usec * 1e6f, 2);
// Sum UL BLER for all CCs
int tx_pkts = metrics.stack.mac[r].tx_pkts;

Loading…
Cancel
Save