Skip to content
Snippets Groups Projects
Commit 7ebb2d48 authored by Thomas Guillem's avatar Thomas Guillem Committed by Hugo Beauzée-Luyssen
Browse files

tracer: json: use a define for tick -> integer conversion

This fixes a timebase mismatch between values from tracer entries (NS vs US).
parent 20973203
No related branches found
No related tags found
1 merge request!1903tracer: json: use a define for tick->tracer_time conversion
Pipeline #220375 passed with stages
in 35 minutes and 46 seconds
......@@ -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");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment