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;h=2180f76c54a02cb7da3d366520e9484ab874aac9;p=rrdtool-all.git fix off by 1 error git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.4@2305 a5681a0c-68f1-0310-ab6d-d61299d08faa --- diff --git a/program/bindings/python/rrdtoolmodule.c b/program/bindings/python/rrdtoolmodule.c index fdf4121c..aea40f17 100644 --- a/program/bindings/python/rrdtoolmodule.c +++ b/program/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();