SRSUE: force printing neighbour cells by default in console trace

This commit is contained in:
Xavier Arteaga 2021-03-09 13:13:02 +01:00 committed by Xavier Arteaga
parent 2782d96170
commit 49a535b81a
2 changed files with 5 additions and 3 deletions

View File

@ -38,6 +38,8 @@ public:
void stop(){};
private:
static const bool FORCE_NEIGHBOUR_CELL = true; // Set to true for printing always neighbour cells
std::string float_to_string(float f, int digits);
std::string float_to_eng_string(float f, int digits);
void print_table(const bool display_neighbours);

View File

@ -96,11 +96,11 @@ void metrics_stdout::set_metrics(const ue_metrics_t& metrics, const uint32_t per
return;
}
bool display_neighbours = false;
bool display_neighbours = FORCE_NEIGHBOUR_CELL;
if (metrics.phy.nof_active_cc > 1) {
display_neighbours = metrics.stack.rrc.neighbour_cells.size() > metrics.phy.nof_active_cc - 1;
display_neighbours |= metrics.stack.rrc.neighbour_cells.size() > metrics.phy.nof_active_cc - 1;
} else {
display_neighbours = metrics.stack.rrc.neighbour_cells.size() > 0;
display_neighbours |= metrics.stack.rrc.neighbour_cells.size() > 0;
}
// print table header every 10 reports