Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CSV file output: fix for timestamp inaccuracy and Y-2038 problem #20

Merged
merged 1 commit into from
Jun 24, 2018

Conversation

dreibh
Copy link
Contributor

@dreibh dreibh commented Jun 24, 2018

  • Replaced (int)time(NULL) by gettimeofday(). Casting time() to int has the Y-2038 problem if sizeof(int) == 4.
  • Record unix time with fractional seconds (microseconds granularity, as from gettimeofday()).

* Replaced (int)time(NULL) by gettimeofday(). Casting time() to int has the Y-2038 problem if sizeof(int) == 4.
* Record unix time with fractional seconds (microseconds granularity, as from gettimeofday()).
@vgropp vgropp merged commit b5da3ed into vgropp:master Jun 24, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants