From: oetiker Date: Mon, 3 Sep 2012 13:39:29 +0000 (+0000) Subject: fix off by 1 error X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;ds=inline;p=rrdtool.git fix off by 1 error git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2305 a5681a0c-68f1-0310-ab6d-d61299d08faa --- 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();