On a RRD file (Round Rubin Database), with Perl and rrdTools I am exporting to XML ( DUMP), removing all the data from a given date, restoring (RESTORE), resizing back to the initial values (RESIZE) and adding my own (UPDATE).
At the end, I compare both files and they are identical except for the modified data. If I make a dump, the XML also.
Four aggregations of 5 minutes, 30 minutes, 2 hours and a day are configured and, being the first and the second correct with respect to the modified and unmodified data, surprisingly the averages of two hours and the daily gives a data incorrect in the modified strips, greater than any of the participants in that average.
It's as if, in order to find the mean, instead of dividing by the number of addends, I did not take into account any of them and, turning it over and over again, I can not find what possible combination of addends and divisor it is using find where you are getting involved.
Of course, the rest of the file does well the rest of media in the data areas that I have not modified (although perhaps if cut and replaced, that is, added after a swath of data modified but identical to the originals) .
Has something similar happened to someone? Is there any configuration value that I have to take into account?
Thank you very much.