From 2180f76c54a02cb7da3d366520e9484ab874aac9 Mon Sep 17 00:00:00 2001 From: oetiker Date: Mon, 3 Sep 2012 13:39:29 +0000 Subject: [PATCH] fix off by 1 error git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.4@2305 a5681a0c-68f1-0310-ab6d-d61299d08faa --- program/bindings/python/rrdtoolmodule.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); -- 2.30.2