mirror of
https://code.videolan.org/videolan/vlc
synced 2024-09-16 16:02:54 +02:00
tracer: json: use a define for tick -> integer conversion
This fixes a timebase mismatch between values from tracer entries (NS vs US).
This commit is contained in:
parent
209732037b
commit
7ebb2d4895
@ -161,7 +161,7 @@ static void TraceJson(void *opaque, va_list entries)
|
||||
|
||||
flockfile(stream);
|
||||
JsonStartObjectSection(stream, NULL);
|
||||
JsonPrintKeyValueNumber(stream, "Timestamp", US_FROM_VLC_TICK(vlc_tick_now()));
|
||||
JsonPrintKeyValueNumber(stream, "Timestamp", VLC_TRACER_TIME_FROM_TICK(vlc_tick_now()));
|
||||
fputc(',', stream);
|
||||
|
||||
JsonStartObjectSection(stream, "Body");
|
||||
|
Loading…
Reference in New Issue
Block a user