set nr_threads to # of chunks if # of chunks is small

This commit is contained in:
Ryo Nakamura
2022-10-30 12:27:58 +00:00
parent 453e8f27ce
commit e997d692c2
3 changed files with 20 additions and 6 deletions

View File

@@ -3,11 +3,6 @@
#include <pthread.h>
static int pprint_level = 1;
/* level 1: print progress bar only.
* level 2: print copy start/done messages.
* level 3: print ssh connection establishment/disconnection.
* level 4: print chunk information.
*/
static pthread_mutex_t pprint_lock = PTHREAD_MUTEX_INITIALIZER;