1
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:
Thomas Guillem 2022-05-11 14:55:57 +02:00 committed by Hugo Beauzée-Luyssen
parent 209732037b
commit 7ebb2d4895

View File

@ -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");