Commit 879b6ad0 authored by Wayne Davison's avatar Wayne Davison

When performing a --dry-run, output a "(DRY RUN)" reminder on the

last line of the verbose summary text.
parent f153c9c9
...@@ -18,6 +18,9 @@ Changes since 2.6.9: ...@@ -18,6 +18,9 @@ Changes since 2.6.9:
understand the -d option (i.e. it is 2.6.3 or older), you will need to understand the -d option (i.e. it is 2.6.3 or older), you will need to
either turn off -d (--no-d), or specify -r --exclude='/*/*' manually. either turn off -d (--no-d), or specify -r --exclude='/*/*' manually.
- In --dry-run mode, the last line of the verbose summary text is output
with a "(DRY RUN)" suffix to help remind you that no updates were made.
BUG FIXES: BUG FIXES:
- Fixed the output of -ii when combined with one of the --*-dest options: - Fixed the output of -ii when combined with one of the --*-dest options:
......
...@@ -272,9 +272,10 @@ static void output_summary(void) ...@@ -272,9 +272,10 @@ static void output_summary(void)
"sent %s bytes received %s bytes %s bytes/sec\n", "sent %s bytes received %s bytes %s bytes/sec\n",
human_num(total_written), human_num(total_read), human_num(total_written), human_num(total_read),
human_dnum((total_written + total_read)/(0.5 + (endtime - starttime)), 2)); human_dnum((total_written + total_read)/(0.5 + (endtime - starttime)), 2));
rprintf(FINFO, "total size is %s speedup is %.2f\n", rprintf(FINFO, "total size is %s speedup is %.2f%s\n",
human_num(stats.total_size), human_num(stats.total_size),
(double)stats.total_size / (total_written+total_read)); (double)stats.total_size / (total_written+total_read),
dry_run ? " (DRY RUN)" : "");
} }
fflush(stdout); fflush(stdout);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment