Write file format in each fragment

This commit is contained in:
2018-12-03 16:02:03 +01:00
parent 32d42564af
commit 06f7f8773e
+5 -1
View File
@@ -173,6 +173,11 @@ void ProcessManager::write_h5()
continue;
}
// When using file roll over, write the file format before switching to the next file.
if (!writer->is_data_for_current_file(received_data.first->frame_index)) {
write_h5_format(writer->get_h5_file());
}
#ifdef PERF_OUTPUT
using namespace date;
auto start_time_frame = std::chrono::system_clock::now();
@@ -273,7 +278,6 @@ void ProcessManager::write_h5()
}
write_h5_format(writer->get_h5_file());
}
#ifdef DEBUG_OUTPUT