picar / pyrrd

Automatically exported from code.google.com/p/pyrrd
BSD 3-Clause "New" or "Revised" License
1 stars 0 forks source link

lastupdate should handle sub-second #32

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
lastupdate timestamp data loaded by rrd.bufferValue types the data as an 
Integer, rrdtool can handle sub-second timestamp data (specifically useful 
handling drift when updating the rrd every second).  This should instead be a 
float.

rrd.py:166
    -self.lastupdate = int(unicode(timeOrData).split(":")[0])

    +self.lastupdate = float(unicode(timeOrData).split(":")[0])

Colin

Original issue reported on code.google.com by co...@horsington.com on 24 Jun 2011 at 1:21

GoogleCodeExporter commented 9 years ago
Thanks, Colin! This change has been pushed.

Original comment by duncan.m...@gmail.com on 24 Jun 2011 at 6:59