Skip to content

Commit

Permalink
Unirec output plugin: changed translate_time to translate high precis…
Browse files Browse the repository at this point in the history
…ion timestamp in microsecond precision
  • Loading branch information
havraji6 committed Oct 31, 2020
1 parent 5515554 commit d6d76c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion extra_plugins/output/unirec/src/translator.c
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,7 @@ translate_time(translator_t *trans, const struct translator_rec *rec,
return 1;
}

*field_ptr = ur_time_from_sec_msec(ts.tv_sec, ts.tv_nsec / 1000000);
*field_ptr = ur_time_from_sec_usec(ts.tv_sec, ts.tv_nsec / 1000);
return 0;
}

Expand Down

0 comments on commit d6d76c4

Please sign in to comment.