Skip to content

Commit

Permalink
Display debug time with milliseconds precision
Browse files Browse the repository at this point in the history
  • Loading branch information
arkq committed Jun 27, 2024
1 parent 1bafbd9 commit bd8269c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/shared/log.c
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ static void vlog(int priority, const char *format, va_list ap) {
fprintf(stderr, "%s: ", _ident);

#if DEBUG_TIME
fprintf(stderr, "%lu.%.9lu: ", (long int)ts.tv_sec, ts.tv_nsec);
fprintf(stderr, "%lu.%.6lu: ", (long int)ts.tv_sec, ts.tv_nsec / 1000);
#endif

#if DEBUG && HAVE_GETTID
Expand Down

0 comments on commit bd8269c

Please sign in to comment.