@cryptotaxi247 / netdata-1 / commits / 220a4ebf8

reverted back the last tolerance fix - charts become anligned visually

Costa Tsaousis (ktsaou) committed Nov 15, 2016 at 00:40 UTC 220a4ebf8970e38765a4f5cd2ff112dfbc7755e3
1 file changed +2 -2
src/rrd.c
+2 -2
@@ -461,8 +461,8 @@ static inline long align_entries_to_pagesize(long entries) {
461 }
462
463 static inline void timeval_align(struct timeval *tv, int update_every) {
464 - tv->tv_sec = tv->tv_sec - tv->tv_sec % update_every + update_every / 2;
465 - tv->tv_usec = (unsigned long)(update_every % 2) * 500000;
464 + tv->tv_sec -= tv->tv_sec % update_every;
465 + tv->tv_usec = 500000;
466 }
467
468 RRDSET *rrdset_create(const char *type, const char *id, const char *name, const char *family, const char *context, const char *title, const char *units, long priority, int update_every, int chart_type)