1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-09 00:00:00 +01:00

Changed precision of offset to nanoseconds for csv. Fixes #189

This commit is contained in:
Dennis Potter 2018-08-02 16:25:07 +02:00
parent 2b52366627
commit cdadbe8bcc

View file

@ -41,7 +41,7 @@ static size_t csv_sprint_single(struct io *io, char *buf, size_t len, struct sam
off += snprintf(buf + off, len - off, "nan%cnan", io->separator);
if (io->flags & SAMPLE_HAS_RECEIVED)
off += snprintf(buf + off, len - off, "%c%f", io->separator, time_delta(&s->ts.origin, &s->ts.received));
off += snprintf(buf + off, len - off, "%c%.09f", io->separator, time_delta(&s->ts.origin, &s->ts.received));
else
off += snprintf(buf + off, len - off, "%cnan", io->separator);