diff options
| author | Wayne Davison <wayned@samba.org> | 2006-02-15 08:26:51 +0000 |
|---|---|---|
| committer | Wayne Davison <wayned@samba.org> | 2006-02-15 08:26:51 +0000 |
| commit | 5b986297479dcdb1151a92c393af2a3ecb6a74bc (patch) | |
| tree | c24c24ea00f6ae3dfd63ff9c01f005f47bf213ef /io.c | |
| parent | 42003f6af3aa45e4afa1f840960b825cb832bdc0 (diff) | |
| download | android_external_rsync-5b986297479dcdb1151a92c393af2a3ecb6a74bc.tar.gz android_external_rsync-5b986297479dcdb1151a92c393af2a3ecb6a74bc.tar.bz2 android_external_rsync-5b986297479dcdb1151a92c393af2a3ecb6a74bc.zip | |
Improved the while's logic in increment_active_files().
Diffstat (limited to 'io.c')
| -rw-r--r-- | io.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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(); |
