Ticket #161 (closed defect: fixed)

Opened 4 years ago

Last modified 2 years ago

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.

Attachments

rrdfetch.patch Download (391 bytes) - added by human 4 years ago.

Change History

Changed 4 years ago by human

comment:1 Changed 4 years ago by oetiker

thanks .... integrated in r1436

comment:2 Changed 4 years ago by oetiker

  • Status changed from new to closed
  • Resolution set to fixed
Note: See TracTickets for help on using tickets.

NOTE: The content of this website is accessible with any browser. The graphical design though relies completely on CSS2 styles. If you see this text, this means that your browser does not support CSS2. Consider upgrading to a standard conformant browser like Mozilla Firefox or Opera but also Apple's Safari or KDE's Konqueror for example. It may also be that you are looking at a mirror page which did not copy the CSS for this page. Or if some pictu res are missing, then the mirror may not have picked up the contents of the inc directory.