align db checks with alarm checks to allow chart updates, up to 5 seconds behind present time; #3752
Costa Tsaousis (ktsaou) committed
May 30, 2018 at 02:50 UTC
3700c70563f8adbb7d5cee1959c7f3355e750571
1 file changed
+1
-1
src/rrdset.c
+1
-1
@@ -749,7 +749,7 @@ inline void rrdset_next_usec(RRDSET *st, usec_t microseconds) {
749
750
microseconds = st->update_every * USEC_PER_SEC;
751
}
752
- else if(unlikely((usec_t)since_last_usec > (usec_t)(st->update_every * 10 * USEC_PER_SEC))) {
752
+ else if(unlikely((usec_t)since_last_usec > (usec_t)(st->update_every * 5 * USEC_PER_SEC))) {
753
// oops! the database is too far behind
754
info("RRD database for chart '%s' on host '%s' is %0.5" LONG_DOUBLE_MODIFIER " secs in the past (counter #%zu, update #%zu). Adjusting it to current time.", st->id, st->rrdhost->hostname, (LONG_DOUBLE)since_last_usec / USEC_PER_SEC, st->counter, st->counter_done);
755