Code

fix off by 1 error 1.4
authoroetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa>
Mon, 3 Sep 2012 13:39:29 +0000 (13:39 +0000)
committeroetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa>
Mon, 3 Sep 2012 13:39:29 +0000 (13:39 +0000)
git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.4/program@2305 a5681a0c-68f1-0310-ab6d-d61299d08faa

bindings/python/rrdtoolmodule.c

index fdf4121ce9027206c4c8cdcc083b4611e3ddb9a8..aea40f175a9b5660d8b09473b0f460a5bba50233 100644 (file)
@@ -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();