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
Fixed the test to ensure that we don't send a flag-byte of 0 to the
[rsync/rsync.git]
/
progress.c
diff --git
a/progress.c
b/progress.c
index
42d8f35
..
969b98b
100644
(file)
--- a/
progress.c
+++ b/
progress.c
@@
-77,7
+77,8
@@
static void rprint_progress(OFF_T ofs, OFF_T size, struct timeval *now,
if (is_last) {
snprintf(eol, sizeof eol, " (%d, %.1f%% of %d)\n",
stats.num_transferred_files,
if (is_last) {
snprintf(eol, sizeof eol, " (%d, %.1f%% of %d)\n",
stats.num_transferred_files,
- (float)(stats.current_file_index * 100) / stats.num_files,
+ (float)((stats.current_file_index+1) * 100)
+ / stats.num_files,
stats.num_files);
} else
strcpy(eol, "\r");
stats.num_files);
} else
strcpy(eol, "\r");