diff --git a/lib/include/srslte/common/metrics_hub.h b/lib/include/srslte/common/metrics_hub.h index 6123119e3..eda6d0991 100644 --- a/lib/include/srslte/common/metrics_hub.h +++ b/lib/include/srslte/common/metrics_hub.h @@ -35,8 +35,11 @@ class metrics_hub : public periodic_thread public: metrics_hub() :m(NULL) - ,sleep_period_start() - {} + { + for (int i = 0; i < 3; ++i) { + sleep_period_start[i] = (struct timeval){}; + } + } bool init(metrics_interface *m_, float report_period_secs_=1.0) { m = m_; // Start with user-default priority