From 92912cb4eb42d3d9360e78fa08bad6631f3b73e3 Mon Sep 17 00:00:00 2001 From: oetiker Date: Thu, 19 Jun 2008 13:18:04 +0000 Subject: [PATCH] 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/trunk/program@1436 a5681a0c-68f1-0310-ab6d-d61299d08faa --- bindings/python/rrdtoolmodule.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bindings/python/rrdtoolmodule.c b/bindings/python/rrdtoolmodule.c index 1b85f96..2771720 100644 --- a/bindings/python/rrdtoolmodule.c +++ b/bindings/python/rrdtoolmodule.c @@ -184,7 +184,7 @@ static PyObject *PyRRD_fetch( 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); -- 2.11.0