Hi! I'm using the rrd_fetch C API to fetch data from an RRD archive. My problem is, that similar, subsequent calls to rrd_fetch return different results using the following code snippet:
time_t start,end; rrd_value_t *datatmp; unsigned long step, ds_cnt,i; char **ds_namv; char parameter[7][255]; char *parampointer[7]; strcpy(parampointer[0]=parameter[0],"fetch"); strcpy(parampointer[1]=parameter[1],"--start"); strcpy(parampointer[2]=parameter[2],"1084961940"); strcpy(parampointer[3]=parameter[3],"--end"); strcpy(parampointer[4]=parameter[4],"1084962480"); sprintf(parampointer[5]=parameter[5],"%s",rrdfilename); strcpy(parampointer[6]=parameter[6],"AVERAGE"); if(rrd_fetch(7, (char **)parampointer,&start,&end,&step,&ds_cnt,&ds_namv,&datatmp) != -1) The first time rrd_fetch is called, the data between the described timestamps are returned correctly. The second time rrd_fethc is called, the data from an entire day is returned. Furthermore, the timestamps are completely ignored, because it is the data between "now" and 24 hours back in time. Is this a bug or is it intentional? If the latter, how do I make it behave properly? Btw. this bug is reproducible using the code from rrdtool.c.... Thanks in advance! Martin Fejrskov Student at Aalborg University, Denmark -- Unsubscribe mailto:[EMAIL PROTECTED] Help mailto:[EMAIL PROTECTED] Archive http://www.ee.ethz.ch/~slist/rrd-users WebAdmin http://www.ee.ethz.ch/~slist/lsg2.cgi
