Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
42003f6
)
Improved the while's logic in increment_active_files().
author
Wayne Davison
<wayned@samba.org>
Wed, 15 Feb 2006 08:26:51 +0000
(08:26 +0000)
committer
Wayne Davison
<wayned@samba.org>
Wed, 15 Feb 2006 08:26:51 +0000
(08:26 +0000)
io.c
patch
|
blob
|
blame
|
history
diff --git
a/io.c
b/io.c
index
b4c552b
..
0948416
100644
(file)
--- 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();