detect too big updates correctly
Costa Tsaousis (ktsaou) committed
Mar 19, 2015 at 11:03 UTC
04f6879931e0220849fc958c63ab781c3bb0712c
1 file changed
+1
-1
src/rrd.c
+1
-1
@@ -612,7 +612,7 @@ void rrd_stats_next_usec(RRD_STATS *st, unsigned long long microseconds)
612
if(microseconds > st->entries * st->update_every * 1000000ULL) {
613
info("History of chart %s too old. Reseting chart.", st->name);
614
rrd_stats_reset(st);
615
- microseconds = 0;
615
+ microseconds = st->update_every * 1000000ULL;
616
}
617
st->usec_since_last_update = microseconds;
618
}