Merge pull request #4109 from ktsaou/master
do not clear the database when it refers to the future
This commit is contained in:
commit
cd3cef55d6
|
@ -588,8 +588,8 @@ RRDSET *rrdset_create_custom(
|
|||
memset(st, 0, size);
|
||||
}
|
||||
else if(st->last_updated.tv_sec > now + update_every) {
|
||||
error("File %s refers to the future. Clearing it.", fullfilename);
|
||||
memset(st, 0, size);
|
||||
error("File %s refers to the future by %zd secs. Resetting it to now.", fullfilename, (ssize_t)(st->last_updated.tv_sec - now));
|
||||
st->last_updated.tv_sec = now;
|
||||
}
|
||||
|
||||
// make sure the database is aligned
|
||||
|
|
Loading…
Reference in New Issue