]> git.ipfire.org Git - thirdparty/rrdtool-1.x.git/commitdiff
Update rrd_tool.c 555/head
authorEduardo Bragatto <bragatto@users.noreply.github.com>
Sun, 16 Nov 2014 18:46:11 +0000 (16:46 -0200)
committerEduardo Bragatto <bragatto@users.noreply.github.com>
Sun, 16 Nov 2014 18:46:11 +0000 (16:46 -0200)
Fixed wrong ending time on RRD xport

src/rrd_tool.c

index 47944221e754b621825b11a921ecb94c7fcbf94f..8cec0a890ab408d91d12335e3a7be94ad28a3879 100644 (file)
@@ -750,7 +750,7 @@ int HandleInputLine(
         
             pXJV("    ","%lld",META_START_TAG,(long long int) start + step);
             pXJV("    ","%lu", META_STEP_TAG, step);
-            pXJV("    ","%lld",META_END_TAG,(long long int) start + step);
+            pXJV("    ","%lld",META_END_TAG,(long long int)end);
             if (! json){
                     pXJV("    ","%lu", META_ROWS_TAG, row_cnt);
                     pXJV("    ","%lu", META_COLS_TAG, col_cnt);