Skip to content
Snippets Groups Projects
Commit 6a1a6ac1 authored by Will Spooner's avatar Will Spooner
Browse files

Added code to restrict the processing of empty files

parent ca112c52
No related branches found
No related tags found
No related merge requests found
......@@ -223,7 +223,7 @@ sub calculate_num_jobs {
my $bytes_per_job = 250000;
my $size = (stat $query)[7];
if( $size == 0 ){ return 0 }
return int($size/$bytes_per_job) || 1;
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment