initialize metrics buffer properly

master
Andre Puschmann 7 years ago
parent 38019dd77c
commit 5d317454e3

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

Loading…
Cancel
Save