Skip to content

Commit

Permalink
Merge pull request #572 from rhpvorderman/patch-3
Browse files Browse the repository at this point in the history
Force xopen to use the main thread  when cores==1
  • Loading branch information
marcelm authored Oct 6, 2021
2 parents d31f8b1 + 02b42c1 commit d75f110
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cutadapt/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1021,7 +1021,7 @@ def warn_if_en_dashes(args):


def estimate_compression_threads(cores: int) -> Optional[int]:
return max(0, min(cores, 4))
return max(0, min(cores - 1, 4))


def is_any_output_stdout(args):
Expand Down

0 comments on commit d75f110

Please sign in to comment.