From 917413878fd9b354bd664994b9b5a915b0ebbf12 Mon Sep 17 00:00:00 2001 From: cvs Date: Wed, 12 Apr 2000 15:14:18 +0000 Subject: [PATCH] hi! --- tecs/tecs_dlog.c | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/tecs/tecs_dlog.c b/tecs/tecs_dlog.c index 896fd8d0..e85f03d1 100644 --- a/tecs/tecs_dlog.c +++ b/tecs/tecs_dlog.c @@ -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++; }