diff options
author | Andrew Tridgell <tridge@samba.org> | 1998-11-02 04:17:56 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 1998-11-02 04:17:56 +0000 |
commit | 1b7c47cb550e7600a66528c9cbd4bc1e880fb91e (patch) | |
tree | 127347b185eb5cc12e085ba766c67ee4ff82e509 /receiver.c | |
parent | 039faa86600172aa92362657659652671aedb4c8 (diff) | |
download | rsync-1b7c47cb550e7600a66528c9cbd4bc1e880fb91e.tar.gz |
Jason told me that's its very important for his site to log exactly
how many bytes were needed to be transferred for each file. I added %b
and %c log format options to cover this. See the man page for details.
Diffstat (limited to 'receiver.c')
-rw-r--r-- | receiver.c | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -292,6 +292,8 @@ int recv_files(int f_in,struct file_list *flist,char *local_name,int f_gen) struct file_struct *file; int phase=0; int recv_ok; + extern struct stats stats; + struct stats initial_stats; if (verbose > 2) { rprintf(FINFO,"recv_files(%d) starting\n",flist->count); @@ -339,6 +341,8 @@ int recv_files(int f_in,struct file_list *flist,char *local_name,int f_gen) continue; } + initial_stats = stats; + if (verbose > 2) rprintf(FINFO,"recv_files(%s)\n",fname); @@ -418,10 +422,10 @@ int recv_files(int f_in,struct file_list *flist,char *local_name,int f_gen) log_transfer(file, fname); } - log_recv(file); - /* recv file data */ recv_ok = receive_data(f_in,buf,fd2,fname,file->length); + + log_recv(file, &initial_stats); if (buf) unmap_file(buf); if (fd1 != -1) { |