summaryrefslogtreecommitdiff
path: root/receiver.c
diff options
context:
space:
mode:
authorWayne Davison <wayned@samba.org>2004-01-13 18:22:43 +0000
committerWayne Davison <wayned@samba.org>2004-01-13 18:22:43 +0000
commit97feb557ede01b645989d16b2e345aaec0790027 (patch)
tree39b05a59cc141ee532965215310d266d3cf47ea4 /receiver.c
parentdc8293ff7370cac42d0005898cdc35ba7fa3c2bc (diff)
downloadrsync-97feb557ede01b645989d16b2e345aaec0790027.tar.gz
Set stats.current_file_index.
Diffstat (limited to 'receiver.c')
-rw-r--r--receiver.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/receiver.c b/receiver.c
index bc297cac..e7fb2112 100644
--- a/receiver.c
+++ b/receiver.c
@@ -309,7 +309,7 @@ int recv_files(int f_in,struct file_list *flist,char *local_name,int f_gen)
i = read_int(f_in);
if (i == -1) {
- if (phase==0) {
+ if (phase == 0) {
phase++;
csum_length = SUM_LENGTH;
if (verbose > 2)
@@ -328,6 +328,7 @@ int recv_files(int f_in,struct file_list *flist,char *local_name,int f_gen)
file = flist->files[i];
+ stats.current_file_index = i;
stats.num_transferred_files++;
stats.total_transferred_size += file->length;
cleanup_got_literal = 0;