From 635db8dde1d0a225673a53ab293952a589c5ac80 Mon Sep 17 00:00:00 2001 From: Ismael Gomez Date: Wed, 14 Apr 2021 13:13:00 +0200 Subject: [PATCH] Initialize metrics in hub --- lib/include/srsran/common/metrics_hub.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/include/srsran/common/metrics_hub.h b/lib/include/srsran/common/metrics_hub.h index b6417a0a7..78146cd84 100644 --- a/lib/include/srsran/common/metrics_hub.h +++ b/lib/include/srsran/common/metrics_hub.h @@ -81,7 +81,7 @@ private: std::chrono::duration_cast(std::chrono::steady_clock::now() - sleep_start); if (m) { - metrics_t metric; + metrics_t metric = {}; m->get_metrics(&metric); for (uint32_t i = 0; i < listeners.size(); i++) { listeners[i]->set_metrics(metric, period_usec.count());