From b699c00fa9cf25b54b28bd15ed71be21429cb413 Mon Sep 17 00:00:00 2001 From: Timm Ruppert Date: Mon, 2 Dec 2024 09:40:00 +0100 Subject: [PATCH] fix description in converted file example Signed-off-by: Timm Ruppert --- examples/convert_osi2mcap.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/convert_osi2mcap.cpp b/examples/convert_osi2mcap.cpp index 5acd318..102e7eb 100644 --- a/examples/convert_osi2mcap.cpp +++ b/examples/convert_osi2mcap.cpp @@ -176,7 +176,7 @@ int main(const int argc, const char** argv) { // add required and optional metadata to the net.asam.osi.trace metadata record auto net_asam_osi_trace_metadata = osi3::MCAPTraceFileWriter::PrepareRequiredFileMetadata(); // Add optional metadata to the net.asam.osi.trace metadata record, as recommended by the OSI specification. - net_asam_osi_trace_metadata.metadata["description"] = "Converted from " + options->output_file_path.string(); // optional field + net_asam_osi_trace_metadata.metadata["description"] = "Converted from " + options->input_file_path.string(); // optional field net_asam_osi_trace_metadata.metadata["creation_time"] = osi3::MCAPTraceFileWriter::GetCurrentTimeAsString(); // optional field if (const auto timestamp_from_osi_file = ExtractTimestampFromFileName(options->input_file_path)) { net_asam_osi_trace_metadata.metadata["zero_time"] = timestamp_from_osi_file.value(); // optional field