Skip to content
Snippets Groups Projects
Commit f4337fa4 authored by Stuart Mcalpine's avatar Stuart Mcalpine
Browse files

Updated logic check for doing a snapshot on the last timestep to remove repitition

parent d05e5c3d
No related branches found
No related tags found
1 merge request!874Stf output times
...@@ -1300,8 +1300,8 @@ int main(int argc, char *argv[]) { ...@@ -1300,8 +1300,8 @@ int main(int argc, char *argv[]) {
#endif #endif
/* Write final snapshot? */ /* Write final snapshot? */
if (e.output_list_snapshots) { if ((e.output_list_snapshots && e.output_list_snapshots->final_step_dump)
if (e.output_list_snapshots->final_step_dump) { || !e.output_list_snapshots) {
#ifdef HAVE_VELOCIRAPTOR #ifdef HAVE_VELOCIRAPTOR
if (with_structure_finding && e.snapshot_invoke_stf) if (with_structure_finding && e.snapshot_invoke_stf)
velociraptor_invoke(&e, /*linked_with_snap=*/1); velociraptor_invoke(&e, /*linked_with_snap=*/1);
...@@ -1311,17 +1311,6 @@ int main(int argc, char *argv[]) { ...@@ -1311,17 +1311,6 @@ int main(int argc, char *argv[]) {
if (with_structure_finding && e.snapshot_invoke_stf) if (with_structure_finding && e.snapshot_invoke_stf)
free(e.s->gpart_group_data); free(e.s->gpart_group_data);
#endif #endif
}
} else {
#ifdef HAVE_VELOCIRAPTOR
if (with_structure_finding && e.snapshot_invoke_stf)
velociraptor_invoke(&e, /*linked_with_snap=*/1);
#endif
engine_dump_snapshot(&e);
#ifdef HAVE_VELOCIRAPTOR
if (with_structure_finding && e.snapshot_invoke_stf)
free(e.s->gpart_group_data);
#endif
} }
/* Write final stf? */ /* Write final stf? */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment