X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=bindings%2Fpython%2Frrdtoolmodule.c;h=1fe4c0ca8d538d2c5541f0bae591f9671133c549;hb=90540f829b4700506bd1a4fda7aed3e4f62987a4;hp=497059d2792245fc1e10ec2d0754a1ea96733f7a;hpb=de9959c7addb65449483bcd54919e9a5e16f5bfc;p=rrdtool.git 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);