This commit is contained in:
cvs
2000-04-12 15:14:18 +00:00
parent 1736b2e5da
commit 917413878f

View File

@ -70,22 +70,6 @@ int DlogFill(DlogSet *dset, int from, int to) {
return(-1);
}
/*
int DlogRead(DlogSet *dset, int idx, void *data) {
int p;
p = dset->headsize + (idx % dset->nlen) * dset->fsize;
if (p!=dset->pos) {
ERR_SI(lseek(dset->fd, p, SEEK_SET));
}
ERR_SI(read(dset->fd, data, dset->fsize));
dset->pos = p + dset->fsize;
return(0);
OnError:
return(-1);
}
*/
int DlogRead(DlogSet *dset, int idx, int max, void *data) {
int i, p, m;
@ -246,7 +230,7 @@ int DlogGet(DlogSet *dset, int iset, int nmax, double *starttime, float x[], flo
undef=1;
} else if (undef==1) {
undef=2;
x[n]=0;
x[n]=(float)(i0-i1)*dset->period;
y[n]=0;
n++;
}