Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Set stats.current_file_index.
[rsync/rsync.git]
/
receiver.c
diff --git
a/receiver.c
b/receiver.c
index
bc297ca
..
e7fb211
100644
(file)
--- 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) {
i = read_int(f_in);
if (i == -1) {
- if (phase
==
0) {
+ if (phase
==
0) {
phase++;
csum_length = SUM_LENGTH;
if (verbose > 2)
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];
file = flist->files[i];
+ stats.current_file_index = i;
stats.num_transferred_files++;
stats.total_transferred_size += file->length;
cleanup_got_literal = 0;
stats.num_transferred_files++;
stats.total_transferred_size += file->length;
cleanup_got_literal = 0;