mirror of https://github.com/PentHertz/srsLTE.git
SRSUE: force printing neighbour cells by default in console trace
This commit is contained in:
parent
2782d96170
commit
49a535b81a
|
@ -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);
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue