I have never done any change to it before, but have a look here: Rrd4j: smoothen data and edit rrd-files