aboutsummaryrefslogtreecommitdiffstats
path: root/sender.c
diff options
context:
space:
mode:
authorWayne Davison <wayned@samba.org>2007-12-08 11:39:03 -0800
committerWayne Davison <wayned@samba.org>2007-12-08 11:39:47 -0800
commit65b4e4b2a93de8e5bff93b5c7a2a529613cbc5e8 (patch)
treeffd109f2b665ee86fd49e330f91ded839cc0b887 /sender.c
parent37adeae73e9e590082d1247eeb8f216db18b24dc (diff)
downloadandroid_external_rsync-65b4e4b2a93de8e5bff93b5c7a2a529613cbc5e8.tar.gz
android_external_rsync-65b4e4b2a93de8e5bff93b5c7a2a529613cbc5e8.tar.bz2
android_external_rsync-65b4e4b2a93de8e5bff93b5c7a2a529613cbc5e8.zip
Updated indexing for accurate progress and improved raw ndx values.
The sending side now has a sorted file-list in iconv mode so that it can output progress in sorted order. Simplified the over-the-wire index values to ensure both sides will always agree on the values. Optimized the allocation of the dir_flist->sorted array on the receiving side with --iconv and incremental recursion.
Diffstat (limited to 'sender.c')
-rw-r--r--sender.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sender.c b/sender.c
index 33d5b947..fc9c47cb 100644
--- a/sender.c
+++ b/sender.c
@@ -265,7 +265,8 @@ void send_files(int f_in, int f_out)
updating_basis_file = inplace && (protocol_version >= 29
? fnamecmp_type == FNAMECMP_FNAME : make_backups <= 0);
- stats.current_file_index = ndx;
+ if (!am_server && do_progress)
+ set_current_file_index(file, ndx);
stats.num_transferred_files++;
stats.total_transferred_size += F_LENGTH(file);