Do not reset metrics in the hub

master
Ismael Gomez 7 years ago
parent 9cfa3c0cc4
commit 0a2e9d7b8b

@ -64,7 +64,6 @@ private:
uint32_t period = sleep_period_start[0].tv_sec*1e6 + sleep_period_start[0].tv_usec; uint32_t period = sleep_period_start[0].tv_sec*1e6 + sleep_period_start[0].tv_usec;
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, period); listeners[i]->set_metrics(metric, period);

Loading…
Cancel
Save