]> git.ipfire.org Git - thirdparty/rrdtool-1.x.git/commitdiff
xport should only return as much data as was requested
authorTobias Oetiker <tobi@oetiker.ch>
Mon, 21 Oct 2013 13:48:54 +0000 (15:48 +0200)
committerTobias Oetiker <tobi@oetiker.ch>
Mon, 21 Oct 2013 13:48:54 +0000 (15:48 +0200)
src/rrd_xport.c

index d9ebaa96cd15bf9d2d8fd9186774938ef6acf87c..4ecee042ae84a87c222b5d0aa81accec5077d887 100644 (file)
@@ -739,7 +739,7 @@ int rrd_xport_format_xmljson(int flags,stringbuffer_t *buffer,image_desc_t *im,t
   }
   addToBuffer(buffer,buf,0);
   /* iterate over data */
-  for (time_t ti = start + step; ti <= end; ti += step) {
+  for (time_t ti = start + step; ti < end; ti += step) {
     if (timefmt) {
       struct tm loc;
       localtime_r(&ti,&loc);