+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
#include <pthread.h>
#include <sys/time.h>
#include <stdlib.h>
if(group <= 0) group = 1;
if(duration / group > points) group++;
- // align timestamps to group
- before -= before % group;
- after -= after % group;
- duration = before - after;
-
// error("NEW: points=%d after=%d before=%d group=%d, duration=%d", points, after, before, group, duration);
// Now we have:
add_this = 0,
stop_now = 0;
+ // align to group for proper panning of data
+ t -= t % group;
+
time_t now = rrdset_slot2time(st, t),
dt = st->update_every,
group_start_t = 0;