Initialize metrics in hub

master
Ismael Gomez 4 years ago
parent e4e3456d76
commit 635db8dde1

@ -81,7 +81,7 @@ private:
std::chrono::duration_cast<std::chrono::microseconds>(std::chrono::steady_clock::now() - sleep_start); std::chrono::duration_cast<std::chrono::microseconds>(std::chrono::steady_clock::now() - sleep_start);
if (m) { if (m) {
metrics_t metric; metrics_t metric = {};
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, period_usec.count()); listeners[i]->set_metrics(metric, period_usec.count());

Loading…
Cancel
Save