rrdxport needs to provide enough data points in its output for the
receiving client to be able to reproduce the graphs generated by rrdgraph.
- The start time pointer needs to be at the start of the interval that
contain the query start time. For the function that retrieves the data.
On output the returned start timestamp is > than query timestamp.
- SV export was missing the end boundary
free(step_list);
*start = im->start - im->start % (*step);
- if (im->start > *start) {
- *start = *start + *step;
- }
*end = im->end - im->end % (*step);
if (im->end > *end) {
/* and now write the data */
rrd_value_t *ptr = data;
- for (time_t ti = start + step; ti < end; ti += step) {
+ for (time_t ti = start + step; ti <= end; ti += step) {
/* write time */
if (timefmt) {
struct tm loc;