From 0209bf7d019e9f42e7dc23a88f4ff6bac68f0969 Mon Sep 17 00:00:00 2001
From: Matthieu Schaller <matthieu.schaller@durham.ac.uk>
Date: Tue, 15 Jan 2019 02:59:37 +0000
Subject: [PATCH] Correct increase of the STF output number when dumping a file
 not associated with snapshots.

---
 src/velociraptor_interface.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/velociraptor_interface.c b/src/velociraptor_interface.c
index a4e21baa7e..66a04a46e5 100644
--- a/src/velociraptor_interface.c
+++ b/src/velociraptor_interface.c
@@ -383,7 +383,7 @@ void velociraptor_invoke(struct engine *e, const int linked_with_snap) {
   free(swift_parts);
 
   /* Increase output counter (if not linked with snapshots) */
-  if (!e->snapshot_invoke_stf) e->stf_output_count++;
+  if (!linked_with_snap) e->stf_output_count++;
 
   if (e->verbose)
     message("took %.3f %s.", clocks_from_ticks(getticks() - tic),
-- 
GitLab