Ticket #161 (closed defect: fixed)
python rrdtool fetch returning one extra row
| Reported by: | human | Owned by: | oetiker |
|---|---|---|---|
| Priority: | minor | Milestone: | |
| Component: | misc | Version: | |
| Keywords: | python bindings | Cc: |
Description
$ rrdtool create test.rrd DS:x:GAUGE:1:U:U RRA:AVERAGE:0.0:1:3 -s 1 -b 1000000000 $ rrdtool update test.rrd 1000000001:1 1000000002:2 1000000003:3 $ rrdtool fetch test.rrd AVERAGE -s 1000000000 -e 1000000003
x
1000000001: 1.0000000000e+00 1000000002: 2.0000000000e+00 1000000003: 3.0000000000e+00 1000000004: nan $ python
rrdtool.fetch('test.rrd', 'AVERAGE', '-s 1000000000', '-e 1000000003')
((1000000000, 1000000004, 1), ('x',), [(1.0,), (2.0,), (3.0,), (None,), (1.0185579799004822e-312,)])
rrdtool.fetch is returning an extra, bogus, data point. Attached is a patch to correct this.
- Gilad Raphaelli
This time, the issue really is in trunk and 1.2.



