Fixed segfault in metrics hub

master
Ismael Gomez 7 years ago
parent 33c35d575d
commit 968a503d93

@ -54,7 +54,6 @@ private:
void run_period() { void run_period() {
if (m) { if (m) {
metrics_t metric; metrics_t metric;
bzero(&metric, sizeof(metrics_t));
m->get_metrics(metric); m->get_metrics(metric);
for (uint32_t i=0;i<listeners.size();i++) { for (uint32_t i=0;i<listeners.size();i++) {
listeners[i]->set_metrics(metric); listeners[i]->set_metrics(metric);

Loading…
Cancel
Save