fix uninitialized timeval struct in metrics_hub

This was causing issue in some builds done on the Ubuntu
PPA systems leading to an SIGILL when starting the UE/eNB
This commit is contained in:
Andre Puschmann 2019-01-22 10:31:28 +01:00
parent a436baed39
commit 2e1b8240e6
1 changed files with 5 additions and 2 deletions

View File

@ -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<metrics_t> *m_, float report_period_secs_=1.0) {
m = m_;
// Start with user-default priority