Fix alignment issue with the stdout metrics in srsue.

master
faluco 3 years ago committed by faluco
parent 75cd71b794
commit 5f9aceb8b6

@ -68,22 +68,22 @@ void metrics_stdout::print_table(const bool display_neighbours, const bool is_nr
if (is_nr) {
if (display_neighbours) {
fmt::print(
"---------Signal----------|-Neighbour-|-----------------DL-----------------|-----------UL-----------\n");
"---------Signal-----------|-Neighbour-|-----------------DL-----------------|-----------UL-----------\n");
fmt::print(
"rat pci rsrp pl cfo | pci rsrp | mcs snr iter brate bler ta_us | mcs buff brate bler\n");
"rat pci rsrp pl cfo | pci rsrp | mcs snr iter brate bler ta_us | mcs buff brate bler\n");
} else {
fmt::print("---------Signal----------|-----------------DL-----------------|-----------UL-----------\n");
fmt::print("rat pci rsrp pl cfo | mcs snr iter brate bler ta_us | mcs buff brate bler\n");
fmt::print("---------Signal-----------|-----------------DL-----------------|-----------UL-----------\n");
fmt::print("rat pci rsrp pl cfo | mcs snr iter brate bler ta_us | mcs buff brate bler\n");
}
} else {
if (display_neighbours) {
fmt::print(
"---------Signal----------|-Neighbour-|-----------------DL-----------------|-----------UL-----------\n");
"---------Signal-----------|-Neighbour-|-----------------DL-----------------|-----------UL-----------\n");
fmt::print(
" cc pci rsrp pl cfo | pci rsrp | mcs snr iter brate bler ta_us | mcs buff brate bler\n");
" cc pci rsrp pl cfo | pci rsrp | mcs snr iter brate bler ta_us | mcs buff brate bler\n");
} else {
fmt::print("---------Signal----------|-----------------DL-----------------|-----------UL-----------\n");
fmt::print(" cc pci rsrp pl cfo | mcs snr iter brate bler ta_us | mcs buff brate bler\n");
fmt::print("---------Signal-----------|-----------------DL-----------------|-----------UL-----------\n");
fmt::print(" cc pci rsrp pl cfo | mcs snr iter brate bler ta_us | mcs buff brate bler\n");
}
}
table_has_neighbours = display_neighbours;
@ -111,7 +111,7 @@ void metrics_stdout::set_metrics_helper(const phy_metrics_t& phy,
}
fmt::print(" {:>4}", int(phy.ch[r].rsrp));
fmt::print(" {:>2}", int(phy.ch[r].pathloss));
fmt::print(" {:>4}", int(phy.ch[r].pathloss));
fmt::print(" {:>5.5}", float_to_eng_string(phy.sync[r].cfo, 2));
// Find strongest neighbour for this EARFCN (cells are ordered)

Loading…
Cancel
Save