diff --git a/srsue/src/metrics_stdout.cc b/srsue/src/metrics_stdout.cc index ae66b3f9f..3f7533df9 100644 --- a/srsue/src/metrics_stdout.cc +++ b/srsue/src/metrics_stdout.cc @@ -135,7 +135,11 @@ void metrics_stdout::set_metrics_helper(const phy_metrics_t& phy, fmt::print(" |"); fmt::print(" {:>2}", int(phy.dl[r].mcs)); - fmt::print(" {:>3}", int(phy.ch[r].sinr)); + if (std::isnan(phy.ch[r].sinr) || std::isinf(phy.ch[r].sinr)) { + fmt::print(" {:>3}", "n/a"); + } else { + fmt::print(" {:>3}", int(phy.ch[r].sinr)); + } fmt::print(" {:>4.1f}", phy.dl[r].fec_iters); fmt::print(" {:>6.6}", float_to_eng_string((float)mac[r].rx_brate / (mac[r].nof_tti * 1e-3), 2));