mirror of https://github.com/PentHertz/srsLTE.git
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:
parent
a436baed39
commit
2e1b8240e6
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue