Set stats.current_file_index.

This commit is contained in:
Wayne Davison
2004-01-13 18:22:43 +00:00
parent dc8293ff73
commit 97feb557ed
2 changed files with 3 additions and 3 deletions

View File

@@ -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;

View File

@@ -34,8 +34,6 @@ extern int am_server;
* and transmits them to the receiver. The sender process runs on the
* machine holding the source files.
**/
void read_sum_head(int f, struct sum_struct *sum)
{
extern int protocol_version;
@@ -155,6 +153,7 @@ void send_files(struct file_list *flist, int f_out, int f_in)
file = flist->files[i];
stats.current_file_index = i;
stats.num_transferred_files++;
stats.total_transferred_size += file->length;