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
Fix a bug in the trailing-slash handling.
[rsync/rsync.git]
/
progress.c
diff --git
a/progress.c
b/progress.c
index
3fb8e2b
..
ac010fd
100644
(file)
--- a/
progress.c
+++ b/
progress.c
@@
-24,6
+24,7
@@
#include "inums.h"
extern int am_server;
#include "inums.h"
extern int am_server;
+extern int flist_eof;
extern int need_unsorted_flist;
extern int output_needs_newline;
extern struct stats stats;
extern int need_unsorted_flist;
extern int output_needs_newline;
extern struct stats stats;
@@
-72,8
+73,8
@@
static void rprint_progress(OFF_T ofs, OFF_T size, struct timeval *now,
if (is_last) {
int len = snprintf(eol, sizeof eol,
if (is_last) {
int len = snprintf(eol, sizeof eol,
- " (xfr#%d,
to
-chk=%d/%d)\n",
- stats.xferred_files,
+ " (xfr#%d,
%s
-chk=%d/%d)\n",
+ stats.xferred_files,
flist_eof ? "to" : "ir",
stats.num_files - current_file_index - 1,
stats.num_files);
if (INFO_GTE(PROGRESS, 2)) {
stats.num_files - current_file_index - 1,
stats.num_files);
if (INFO_GTE(PROGRESS, 2)) {