X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/d6081c829cf2aed6e7d5780e9a076fdcfd0e2391..7eb2ecda0f4f884454c9e448a448227b94d08f21:/io.c diff --git a/io.c b/io.c index b4c552b7..0948416f 100644 --- a/io.c +++ b/io.c @@ -339,8 +339,7 @@ static void read_msg_fd(void) void increment_active_files(int ndx, int itemizing, enum logcode code) { /* TODO: tune these limits? */ - while (active_filecnt >= 10 - && (active_bytecnt >= 128*1024 || active_filecnt >= 50)) { + while (active_filecnt >= (active_bytecnt >= 128*1024 ? 10 : 50)) { if (hlink_list.head) check_for_finished_hlinks(itemizing, code); read_msg_fd();