Hi

While investigating an issue with PREV(), I found myself unable to
explain the resolution in that case:
- An rrd file "esel.rrd" is created by "create.sh" and filled by "fill.py".

Data is available:
- Every 2 minutes for 12 hours
- Every 8 minutes for 48 hours
- ...

When I graph starting at "end-12h" or "end-11h", I expected a 2 minute
resolution. But what I get is more like a 8 minutes one.
See attached "graph.sh" and the resulting png.
Width is 720 pixels wide: One pixel per minute on a 12 hours period.
The resolution is ok for 10 hours (smooth curve), but 11 hours and 12
hours yield a stair effect.

Is that a bug?

Attachment: create.sh
Description: application/shellscript

Attachment: esel.rrd
Description: Binary data

#!/usr/bin/python
import rrdtool, datetime, calendar, math

now = datetime.datetime.now() - datetime.timedelta(seconds=60*4000)
for i in range(4000):
    time = calendar.timegm(now.timetuple())
    update_str = '{0}:{1}'.format(time, math.sin(i/200.)*5000)
    rrdtool.update('esel.rrd', update_str)
    now += datetime.timedelta(seconds=60)

Attachment: graph.sh
Description: application/shellscript

_______________________________________________
rrd-developers mailing list
rrd-developers@lists.oetiker.ch
https://lists.oetiker.ch/cgi-bin/listinfo/rrd-developers

Reply via email to