diff options
author | Costa Tsaousis (ktsaou) <costa@tsaousis.gr> | 2015-03-19 11:03:54 +0200 |
---|---|---|
committer | Costa Tsaousis (ktsaou) <costa@tsaousis.gr> | 2015-03-19 11:03:54 +0200 |
commit | 04f6879931e0220849fc958c63ab781c3bb0712c (patch) | |
tree | 3c83de04c8b09463f2825f18e16abd914875c465 | |
parent | 99aa0a93e96c25b1294d2e640b7ed874661d4cdd (diff) |
detect too big updates correctly
-rwxr-xr-x | src/rrd.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -612,7 +612,7 @@ void rrd_stats_next_usec(RRD_STATS *st, unsigned long long microseconds) if(microseconds > st->entries * st->update_every * 1000000ULL) { info("History of chart %s too old. Reseting chart.", st->name); rrd_stats_reset(st); - microseconds = 0; + microseconds = st->update_every * 1000000ULL; } st->usec_since_last_update = microseconds; } |