diff --git a/src/catools/tool_lib.c b/src/catools/tool_lib.c index 0fa36eba1..d34fa4e0d 100644 --- a/src/catools/tool_lib.c +++ b/src/catools/tool_lib.c @@ -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; \