Skip to content

Commit

Permalink
fix description in converted file example
Browse files Browse the repository at this point in the history
Signed-off-by: Timm Ruppert <[email protected]>
  • Loading branch information
TimmRuppert committed Dec 2, 2024
1 parent bd3a708 commit b699c00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/convert_osi2mcap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b699c00

Please sign in to comment.