Fix to calculation of default nr of threads to use for parallel compression