Commit 6a1a6ac1 authored by Will Spooner's avatar Will Spooner
Browse files

Added code to restrict the processing of empty files

parent ca112c52
......@@ -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;
}
......
Markdown is supported
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