Skip to content

Commit

Permalink
Merge pull request CESNET#44 from CESNET/usec_ts_conversion
Browse files Browse the repository at this point in the history
Increase unirec output timestamp precision
  • Loading branch information
Lukas955 authored Mar 13, 2021
2 parents 57229eb + d6d76c4 commit f35691f
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 @@ -524,7 +524,7 @@ translator_store_time(const enum fds_iemgr_element_type type_ipx, const uint8_t
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 f35691f

Please sign in to comment.