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 the %P logfile escape inside a chroot.
[rsync/rsync.git]
/
progress.c
diff --git
a/progress.c
b/progress.c
index
afd8ef6
..
e6cdd43
100644
(file)
--- a/
progress.c
+++ b/
progress.c
@@
-21,6
+21,7
@@
*/
#include "rsync.h"
*/
#include "rsync.h"
+#include "inums.h"
extern int am_server;
extern int need_unsorted_flist;
extern int am_server;
extern int need_unsorted_flist;
@@
-71,7
+72,7
@@
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,
- " (xf
er#%d, to-chec
k=%d/%d)\n",
+ " (xf
r#%d, to-ch
k=%d/%d)\n",
stats.num_transferred_files,
stats.num_files - current_file_index - 1,
stats.num_files);
stats.num_transferred_files,
stats.num_files - current_file_index - 1,
stats.num_files);
@@
-123,7
+124,7
@@
static void rprint_progress(OFF_T ofs, OFF_T size, struct timeval *now,
output_needs_newline = 0;
pct = ofs == size ? 100 : (int) (100.0 * ofs / size);
output_needs_newline = 0;
pct = ofs == size ? 100 : (int) (100.0 * ofs / size);
- rprintf(FCLIENT, "\r%1
2
s %3d%% %7.2f%s %s%s",
+ rprintf(FCLIENT, "\r%1
5
s %3d%% %7.2f%s %s%s",
human_num(ofs), pct, rate, units, rembuf, eol);
if (!is_last) {
output_needs_newline = 1;
human_num(ofs), pct, rate, units, rembuf, eol);
if (!is_last) {
output_needs_newline = 1;