X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=bindings%2Fpython%2Frrdtoolmodule.c;h=aea40f175a9b5660d8b09473b0f460a5bba50233;hb=refs%2Fheads%2Fmaster;hp=fdf4121ce9027206c4c8cdcc083b4611e3ddb9a8;hpb=58e33c38668afe88b2e45c9aca017b46a92537ca;p=rrdtool.git diff --git a/bindings/python/rrdtoolmodule.c b/bindings/python/rrdtoolmodule.c index fdf4121..aea40f1 100644 --- a/bindings/python/rrdtoolmodule.c +++ b/bindings/python/rrdtoolmodule.c @@ -618,7 +618,7 @@ static PyObject *PyRRD_xport( unsigned long i, j; rrd_value_t dv; - unsigned long row_cnt = (end - start) / step; + unsigned long row_cnt = ((end - start) / step) + 1; r = PyDict_New(); meta_dict = PyDict_New();