-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pcapfile: make sure nanosecond timestamp resolution is retained
Previously, we were using trace_get_timeval() to get the timestamp for a packet that is to be written, but obviously this timestamp is only at microsecond resolution. Changed to use trace_get_timespec() instead and the resulting nanosecs are only then divided by 1000 if the output trace is going to also use microsecond resolution.
- Loading branch information
Showing
1 changed file
with
16 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters