Fix alignment issue with the stdout metrics in srsue.

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

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

Loading…
Cancel
Save