X-Git-Url: https://git.octo.it/?p=rrdtool.git;a=blobdiff_plain;f=src%2Frrd_xport.c;h=063982ebcf11e2d998db3206802562732d5d4382;hp=82044694779b5916ff07d44d9eb9eea70865c897;hb=19f031713115921bebf5949ce63926d66dd8c6a5;hpb=aff0a2728543eee1ac21f3fa02f171caae8d9362 diff --git a/src/rrd_xport.c b/src/rrd_xport.c index 8204469..063982e 100644 --- a/src/rrd_xport.c +++ b/src/rrd_xport.c @@ -1,5 +1,5 @@ /**************************************************************************** - * RRDtool 1.3.2 Copyright by Tobi Oetiker, 1997-2008 + * RRDtool 1.4.3 Copyright by Tobi Oetiker, 1997-2010 **************************************************************************** * rrd_xport.c export RRD data ****************************************************************************/ @@ -254,7 +254,7 @@ int rrd_xport_fn( case GF_XPORT: ref_list[xport_counter++] = i; *step_list_ptr = im->gdes[im->gdes[i].vidx].step; - printf("%s:%lu\n",im->gdes[i].legend,*step_list_ptr); + /* printf("%s:%lu\n",im->gdes[i].legend,*step_list_ptr); */ step_list_ptr++; /* reserve room for one legend entry */ /* is FMT_LEG_LEN + 5 the correct size? */ @@ -282,11 +282,11 @@ int rrd_xport_fn( *step_list_ptr=0; /* find a common step */ *step = lcd(step_list); - printf("step: %lu\n",*step); + /* printf("step: %lu\n",*step); */ free(step_list); *start = im->start - im->start % (*step); - *end = im->end - im->end % (*step); + *end = im->end - im->end % (*step) + (*step); /* room for rearranged data */