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:
parent
2b52366627
commit
cdadbe8bcc
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue