Skip to content

Commit 598aa9e

Browse files
committed
Updated .investigated naming convention to appear at the end of the filename and moved the closing newline on the results file out of the decompress code block in case we want to move that
1 parent 6d7e529 commit 598aa9e

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

sqlite_miner.pl

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -207,8 +207,8 @@ sub mine_file {
207207
(my $original_file_volume, my $original_file_directory, my $original_file_name) = File::Spec->splitpath($original_file);
208208
$output_db_file = $original_file_name;
209209
$output_db_file =~ s/\.investigated\.?//g;
210-
if($output_db_file =~ s/(\.[^.]*)/.investigated$1/) {
211-
#$output_db_file =~ s/(\.[^.]*)/.investigated$1/;
210+
if($output_db_file =~ s/(\.[^.]*)$/.investigated$1/) {
211+
#$output_db_file =~ s/(\.[^.]*)$/.investigated$1/;
212212
} else {
213213
$output_db_file .= ".investigated";
214214
}
@@ -411,10 +411,11 @@ sub check_column_for_fun {
411411
} else {
412412
print "\tNot updating $column_name in $table_name with decompressed data due to likely bad decompression\n" if $very_verbose;
413413
}
414-
print RESULT_OUTPUT ",\"Decompressed\"\n";
415-
} else {
416-
print RESULT_OUTPUT "\n";
414+
print RESULT_OUTPUT ",\"Decompressed\"";
417415
}
416+
417+
# Close the line in the output file
418+
print RESULT_OUTPUT "\n";
418419
}
419420

420421
}

0 commit comments

Comments
 (0)