From: oetiker Date: Thu, 19 Jun 2008 13:18:04 +0000 (+0000) Subject: rrdtool.fetch is returning an extra, bogus, data point. Attached is a X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=90540f829b4700506bd1a4fda7aed3e4f62987a4;p=rrdtool.git rrdtool.fetch is returning an extra, bogus, data point. Attached is a patch to correct this. - Gilad Raphaelli. Fix for #161 git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2/program@1436 a5681a0c-68f1-0310-ab6d-d61299d08faa --- diff --git a/bindings/python/rrdtoolmodule.c b/bindings/python/rrdtoolmodule.c index 497059d..1fe4c0c 100644 --- a/bindings/python/rrdtoolmodule.c +++ b/bindings/python/rrdtoolmodule.c @@ -175,7 +175,7 @@ PyRRD_fetch(PyObject UNUSED(*self), PyObject *args) unsigned long i, j, row; rrd_value_t dv; - row = ((end - start) / step + 1); + row = (end - start) / step; r = PyTuple_New(3); range_tup = PyTuple_New(3);