We will just sum the data because there are sometimes sources that have
multiple metrics that we need to aggregate - for example counters per
worker/thread.
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
break;
case TD_METRIC_INT64:
- metric->value._int64 = *(int64_t*)value;
+ metric->value._int64 += *(int64_t*)value;
break;
case TD_METRIC_UINT64:
- metric->value._uint64 = *(uint64_t*)value;
+ metric->value._uint64 += *(uint64_t*)value;
break;
case TD_METRIC_FLOAT:
- metric->value._float = *(double*)value;
+ metric->value._float += *(double*)value;
break;
}