From f79a70845cc4cf659b5be24dec8cb6ca5a47689f 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/trunk/program@2305 a5681a0c-68f1-0310-ab6d-d61299d08faa --- bindings/python/rrdtoolmodule.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); -- 2.30.2