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 /backends | |
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 'backends')
-rw-r--r-- | backends/backends.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/backends/backends.c b/backends/backends.c index 24f84b63c8..120c6e7033 100644 --- a/backends/backends.c +++ b/backends/backends.c @@ -131,7 +131,8 @@ calculated_number backend_calculate_value_from_stored_data( } */ for(rd->state->query_ops.init(rd, &handle, after, before) ; !rd->state->query_ops.is_finished(&handle) ; ) { - n = rd->state->query_ops.next_metric(&handle); + time_t curr_t; + n = rd->state->query_ops.next_metric(&handle, &curr_t); if(unlikely(!does_storage_number_exist(n))) { // not collected |