diff options
author | Markos Fountoulakis <44345837+mfundul@users.noreply.github.com> | 2019-08-28 17:33:51 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-28 17:33:51 +0300 |
commit | 2a06960117fa020b94783c54785fa6e3b8b6ee5c (patch) | |
tree | a80cc7a7f12ba5276db10d8193bd0e8a4ce74852 /database/rrddim.c | |
parent | dab0eeeea4d4ff77ba1d37fde842e13ab987146d (diff) |
Variable Granularity support for data collection (#6430)
* Variable Granularity support for data collection in the dbengine.
* Variable Granularity support for data collection in the daemon.
* Added tests to validate the data being queried after having been collected by changing data collection interval
* Fix memory corruption
* Updated database engine documentation about data collection frequency behaviour
Diffstat (limited to 'database/rrddim.c')
-rw-r--r-- | database/rrddim.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/database/rrddim.c b/database/rrddim.c index 09f364b02b..019ca34a19 100644 --- a/database/rrddim.c +++ b/database/rrddim.c @@ -118,11 +118,12 @@ static void rrddim_query_init(RRDDIM *rd, struct rrddim_query_handle *handle, ti handle->slotted.finished = 0; } -static storage_number rrddim_query_next_metric(struct rrddim_query_handle *handle) { +static storage_number rrddim_query_next_metric(struct rrddim_query_handle *handle, time_t *current_time) { RRDDIM *rd = handle->rd; long entries = rd->rrdset->entries; long slot = handle->slotted.slot; + (void)current_time; if (unlikely(handle->slotted.slot == handle->slotted.last_slot)) handle->slotted.finished = 1; storage_number n = rd->values[slot++]; |