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:
bd39e9d
)
don't adapt the block size to above half the chunk size
author
Andrew Tridgell
<tridge@samba.org>
Mon, 23 Mar 1998 06:26:08 +0000
(06:26 +0000)
committer
Andrew Tridgell
<tridge@samba.org>
Mon, 23 Mar 1998 06:26:08 +0000
(06:26 +0000)
rsync.c
patch
|
blob
|
blame
|
history
diff --git
a/rsync.c
b/rsync.c
index
59d7422
..
22e4dcd
100644
(file)
--- a/
rsync.c
+++ b/
rsync.c
@@
-283,6
+283,7
@@
int adapt_block_size(struct file_struct *file, int bsize)
int ret = file->length / (10000); /* rough heuristic */
ret = ret & ~15; /* multiple of 16 */
if (ret < bsize) ret = bsize;
int ret = file->length / (10000); /* rough heuristic */
ret = ret & ~15; /* multiple of 16 */
if (ret < bsize) ret = bsize;
+ if (ret > CHUNK_SIZE/2) ret = CHUNK_SIZE/2;
return ret;
}
return ret;
}