From d02e8135fb73c5efd5927e3951afbc8503f186ee Mon Sep 17 00:00:00 2001 From: Andre Puschmann Date: Fri, 2 Oct 2020 17:00:19 +0200 Subject: [PATCH] metrics_stdout: reset n_reports var after writing intermediate table header --- srsue/src/metrics_stdout.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/srsue/src/metrics_stdout.cc b/srsue/src/metrics_stdout.cc index f6c2e27d0..d5f76299d 100644 --- a/srsue/src/metrics_stdout.cc +++ b/srsue/src/metrics_stdout.cc @@ -82,6 +82,7 @@ void metrics_stdout::print_table(const bool display_neighbours) cout << "cc pci rsrp pl cfo mcs snr turbo brate bler ta_us mcs buff brate bler" << endl; } table_has_neighbours = display_neighbours; + n_reports = 0; } void metrics_stdout::set_metrics(const ue_metrics_t& metrics, const uint32_t period_usec) @@ -113,8 +114,6 @@ void metrics_stdout::set_metrics(const ue_metrics_t& metrics, const uint32_t per // print table header every 10 reports if (++n_reports > 10) { - n_reports = 0; - cout << endl; print_table(display_neighbours); }