Bugfix for absolute timestamps.

This commit is contained in:
Ralph Lange
2004-05-26 12:51:21 +00:00
parent 987f598804
commit d625b13899

View File

@@ -383,14 +383,15 @@ char *dbr2str (const void *value, unsigned type)
printAbs = 1; \
} \
\
if (pv->firstStampPrinted) \
{ \
printf("%10.4fs ", epicsTimeDiffInSeconds( \
&(((struct TYPE *)value)->stamp), ptsRef) ); \
} else { /* First stamp is always absolute */ \
printAbs = 1; \
pv->firstStampPrinted = 1; \
} \
if (!printAbs) \
if (pv->firstStampPrinted) \
{ \
printf("%10.4fs ", epicsTimeDiffInSeconds( \
&(((struct TYPE *)value)->stamp), ptsRef) ); \
} else { /* First stamp is always absolute */ \
printAbs = 1; \
pv->firstStampPrinted = 1; \
} \
\
if (tsType == incrementalByChan) \
pv->tsPrevious = ((struct TYPE *)value)->stamp; \